Skip to content

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

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.

AuthWAPI sign-in page in dark mode with OAuth app banner, password, passkey, Google, GitHub, SSO, and magic-link options
/sign-inDark mode (OAuth + social)
AuthWAPI sign-in page in light mode
/sign-inLight mode
AuthWAPI create an account page in dark mode
/sign-upDark mode
AuthWAPI create an account page in light mode
/sign-upLight mode
AuthWAPI check your email confirmation page after sign-up
POST /sign-upCheck your email
AuthWAPI home page when signed out
/Signed out
AuthWAPI account page when signed in with links to 2FA and passkeys
/Signed in
AuthWAPI email verification page asking for the sign-up password
/api/auth/verify-emailVerify email
AuthWAPI magic link confirmation screen asking Sign in as ada@example.com?
/api/auth/magic-link/verifyMagic-link confirm
AuthWAPI forgot password page
/forgot-passwordRequest reset
AuthWAPI choose a new password page
/reset-passwordChoose new password
AuthWAPI signed out confirmation page
/signed-outSigned out
AuthWAPI two-factor setup page with QR code, manual secret key, backup codes, and confirmation code input
/two-factor/setupQR code & backup codes
AuthWAPI two-factor challenge page with 6-digit code input and backup code disclosure
/two-factor2FA challenge
AuthWAPI passkeys management page
/passkeysAdd a passkey
AuthWAPI choose an organization page with selectable role cards
/select-orgOrganization picker
AuthWAPI OAuth consent page showing scopes, API resource access, organization badge, and Allow or Deny buttons
/consentOAuth & MCP consent
AuthWAPI organization invitation acceptance page
/accept-invitationOrg invitation
AuthWAPI error page displaying a plain-language message and error code
/errorError page

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 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.

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.

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