Logs out the currently authenticated user by invalidating their active session or access token. This endpoint should be called when a user explicitly signs out of the application.
Request
Header Params
Responses
🟢200The user has been successfully logged out and the session/token has been invalidated.
application/json
Bodyapplication/json
🟠401Unauthorized
🔴500Internal Server error
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--globoff--request POST '{store_url}/api/v1//auth/logout' \
--header'Content-Type: application/json'