How it works
1
User opens the login page
Your extension calls
client.openLoginPage(), which opens the crxbase login page in the browser.2
User enters their email
The user types their email address and clicks Sign in.
3
OTP is sent
A 6-digit code is sent to their email. The code expires after 10 minutes.
4
User enters the code
The user enters the 6-digit code to verify their identity.
5
Session is created
A signed-in browser session is created automatically. The session lasts 90 days.
getUser(), etc.) work with the authenticated session.
Session details
Handling expired sessions
When a session expires,getUser() returns null. Check for this and prompt the user to log in again:
Logging out
Callclient.logout() to clear the user’s session:

