Logout current session
Authentication
Logout
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