🔐 Authentication
Logout user
The API endpoint is responsible for logging out users from the application and destroying the access token cookies stored on the client-side.
When accessing this endpoint, it triggers the logout process, revoking the user's authentication and terminating their active session.
Additionally, it ensures that any access token cookies associated with the user's session are removed from the client's browser, effectively logging them out from the application.
post/users/logout
Request
- Base URLhttps://api.freeapi.app/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Logout user
Example response
{
"message": "User logged out",
"statusCode": 200,
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.