Wraps the Revoke Session endpoint and revokes the user’s current session. This method should be used to log out a user. While calling this method, we clear the user and session objects from the cache unless the SDK cannot contact the Stytch servers. This behavior can be overriden by using the optional param object.
When true, clear the user and session object in the cache, even in the event of a network failure revoking the session.
When false, the user and session object will not be cleared in the event that the SDK cannot contact the Stytch servers.
The user and session object will always be cleared when the session revoke call succeeds.
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.
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.