Docs
Documentation
Start with the quickstart. The SDK reference on GitHub covers every option until the full docs site is ready.
QuickstartAdd sign-in to a JavaScript, React, Node or Laravel app.SDK referenceEvery option of @authxi/js, @authxi/react and @authxi/node, on GitHub.Step-up checksAsk for two-step verification before a sensitive action.SecurityThe rules authxi follows on every sign-in.
Endpoints
Each workspace is an OpenID Connect issuer at
https://{workspace}.authxi.com, or at its custom domain. Most libraries need only the issuer: they read the rest from the discovery document.| Endpoint | Path on the issuer |
|---|---|
| Discovery | /.well-known/openid-configuration |
| Authorization | /authorize |
| Token | /token |
| User info | /userinfo |
| Signing keys (JWKS) | /.well-known/jwks.json |
| Sign out | /logout |
ID token claims
RS256-signed, valid for 5 minutes. Verify it against the issuer's keys, or let the SDK do it.
- sub
- The user's id (usr_...). The same person has the same id in every app of the workspace.
- email, email_verified
- The Google account's email. Always verified.
- name, given_name, family_name, picture
- From the Google profile.
- hd
- The Google Workspace domain, when the account has one.
- amr, acr, mfa_time
- Two-step verification results, when a check passed.
Errors
Failures come back to your callback as
?error=...&error_description=..., so your app can show its own message.- access_denied
- The user doesn't match the access rules, is blocked, is waiting for approval, or cancelled.
- login_required
- A silent sign-in (prompt=none) needs the user to sign in.
- interaction_required
- A silent sign-in needs a two-step check.