🔐 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
Response
Logout user
Example response
{
"message": "User logged out",
"statusCode": 200,
"success": true
}