Hosted pages
AuthWAPI serves its own pages, so your app needs no login UI. They are server-rendered HTML (the only script is /passkey.js, on
pages with a passkey button), follow the system light or dark theme, can’t be framed by another site, and are never cached.
| Page | What it is |
|---|---|
/ |
Shows who is signed in, with a sign-out button |
/sign-in |
Password sign-in, “Sign in with SSO” (your organization’s identity provider), or “Email me a link” (a magic link). Also the OAuth sign-in page: during an app’s sign-in it names the app, as the consent page does. |
/sign-up |
Create an account |
/forgot-password |
Ask for a reset link |
/reset-password |
Choose a new password (opened from the reset email) |
/consent |
An app asking for access: lists what it wants in plain words, with Allow and Deny |
/select-org |
An app asked for the organization scope: pick which of your organizations it’s for, or none |
/accept-invitation |
The link in an organization invitation email: accept it while signed in with that address (signed out, it links to sign-in and sign-up) |
/two-factor/setup |
Turn on TOTP: a QR code for the authenticator app, the key and link to type or open instead, and backup codes |
/signed-out |
After signing out |
/error |
Where a browser lands after an error (a bad app request, an expired sign-in): the error code in plain words |
/api/auth/oauth2/end-session |
An app signing you out (RP-initiated logout): confirm, signed out, or why it failed |
/api/auth/verify-email |
The link in the verification email |
/api/auth/magic-link/verify |
The link in the magic-link email |
Visual examples
Section titled “Visual examples”Every screenshot below is captured directly from AuthWAPI’s server-rendered HTML (click any image to open full-size). Pages follow the browser’s prefers-color-scheme automatically.
Sign in and sign up
Section titled “Sign in and sign up”
/sign-inDark mode (OAuth + social)
/sign-inLight mode
/sign-upDark mode
/sign-upLight mode
POST /sign-upCheck your emailAccount, verification and recovery
Section titled “Account, verification and recovery”
/Signed out
/Signed in
/api/auth/verify-emailVerify email
/api/auth/magic-link/verifyMagic-link confirm
/forgot-passwordRequest reset
/reset-passwordChoose new password
/signed-outSigned outTwo-factor authentication and passkeys
Section titled “Two-factor authentication and passkeys”OAuth consent, organizations and errors
Section titled “OAuth consent, organizations and errors”
/select-orgOrganization picker
/consentOAuth & MCP consent
/accept-invitationOrg invitation
/errorError pageErrors
Section titled “Errors”Better Auth sends a browser that hit an error to /error?error=<code>. The page shows the code, in plain words
where it knows it. It never shows error_description or any other text from the URL: anyone can write a link to
the page, and text shown there would look like it came from AuthWAPI.
Verifying an email
Section titled “Verifying an email”Verifying an email asks for the password chosen at sign-up. Opening the link only shows that form. This stops an account takeover: if someone signs up with your address and their own password, and you click the verification link they caused to be sent, you won’t know their password, so their account never becomes a verified account in your name. “Forgot password?” on that page replaces the password and ends every session.
Magic links
Section titled “Magic links”A magic link asks “Sign in as you@example.com?” before it signs you in. So an email scanner that opens links can’t use it up, and a link someone else sent you can’t sign you in without you seeing whose account it is.
Consent
Section titled “Consent”When an app sends a user to sign in, the consent page names the app and lists, in plain words, what it asked for.
For an MCP client whose client_id is a metadata URL, it leads with that URL’s host, which is where the client
really comes from, and shows the name only as what the client calls itself.
| Scope | Shown as |
|---|---|
openid |
Confirm who you are |
email |
See your email address and whether it is verified |
offline_access |
Stay signed in to the app while you’re away |
organization |
See which organization you sign in for and your role in it (plus the organization picked) |
resource=<api> |
Access <api> on your behalf |