End Session
Clears the browser session cookie and attempts to end the hosted session. When no usable session remains, redirects directly to returnTo or /. Invalid returnTo values are rejected before the cookie is cleared.
Query Parameters
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).