Skip to main content
GET
End Session

Query Parameters

returnTo
string

Destination after authentication or local logout: a path starting with / or an absolute URL on an allowed origin. Empty values are treated as omitted; the local fallback is /. External logout destinations must also be registered as sign-out redirects.

Response

Clears the session cookie and redirects to the WorkOS logout URL, which ends the AuthKit session and returns the browser to returnTo when given (the origin must also be a configured WorkOS Sign-out Redirect).