Skip to main content
Wraps the Revoke Session endpoint. Use this method to log the current member out. When this method is called, we clear the member and session objects from the cache unless the SDK cannot contact the Stytch servers. This behavior can be overridden by using the optional param object.

Parameters

object
An object containing optional parameters for revoking the session.

Response

number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.