Skip to main content

Admin Logout (v1)

Method + Path

POST /v1/auth/admin/logout

Actual backend path: /v1/auth/admin/logout

Description

Log out the current admin user and revoke the session. This endpoint is idempotent - it will succeed even if the token is already invalid.

Authentication

Required - Cookie-based authentication (refresh token in HTTP-only cookie)

Headers

HeaderTypeRequiredDescription
CookiestringYesHTTP-only cookie containing refresh token

Request Body

No request body required.

Response (204)

No content - successful logout. All authentication cookies are cleared.

Common Errors

  • 500 Internal Server Error: Server error

Note: This endpoint is idempotent and will not return an error if the token is already invalid.