- Via SDK
- Via API
Using the Stytch SDK
1
Using sessions.revoke()
The
sessions.revoke() method clears the user and session objects from local storage unless the SDK cannot contact the Stytch servers.Example