Skip to main content
POST
Logout current session

Overview

Logout from the current session by invalidating the authentication token.

Authorization

  • User must be authenticated with a valid Bearer token

Token Invalidation

  • The current token is immediately invalidated
  • The token cannot be used for future requests
  • Other active sessions remain valid

Example Usage

Security Best Practices

  • Always logout when done using the application
  • Clear tokens from client-side storage
  • Implement automatic logout on token expiration

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Logged out successfully

message
string
Example:

"Logged out successfully"