Skip to main content

Logout

The /auth/logout endpoint is used to log out a user and invalidate their session.

Method

GET /auth/logout

Response

{
"success": true
}

Notes

  • The response is always true in all cases.
  • It simply clears the session cookie if exists.
  • If its development environment, handle removing the token manually from local storage.