auth

Logs out a user.

Changed on
post/logout

Request

  • Base URL
    https://abcdefghijklmnopqrst.supabase.co/auth/v1
  • URL
    https://abcdefghijklmnopqrst.supabase.co/auth/v1/logout
  • Auth
    API key in header apikey and HTTP bearer

Query parameters

scope'global' | 'local' | 'others'

(Optional.) Determines how the user should be logged out. When global is used, the user is logged out from all active sessions. When local is used, the user is logged out from the current session. When others is used, the user is logged out from all other sessions except the current one. Clients should remove stored access and refresh tokens except when others is used.

Response

No content returned on successful logout.

Changes