Skip to main content

Triggering authentication

You can call the specific login or signup methods you want to support. For example, with passkeys:
Here’s an example using email OTP:
Sessions will be automatically created and stored in the browser’s local storage or mobile async storage on React Native.

Checking authentication state

To check if a user is authenticated, call client.getSession() and verify the expiry:
If the session is expired or the user is done with their session, you can log them out: