Skip to content

Sign out the current session

POST
/auth/logout
curl --request POST \
--url https://example.com/api/auth/logout \
--cookie sb-access-token=<sb-access-token>

Signs out the Supabase session and redirects to /. Session-only.

Logout completed (non-redirect clients)

Redirect to home page

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number