Directories
¶
| Path | Synopsis |
|---|---|
|
access
module
|
|
|
Package admin gives an app's operators the user operations every product needs: find a user, see their identities, ban and unban, end their sessions, and grant or remove admin rights.
|
Package admin gives an app's operators the user operations every product needs: find a user, see their identities, ban and unban, end their sessions, and grant or remove admin rights. |
|
agentauth
module
|
|
|
Package anonymous gives a visitor an account before they have told the app who they are: a guest session for a cart, a trial or a draft, and a link to the real account the moment they sign up or sign in.
|
Package anonymous gives a visitor an account before they have told the app who they are: a guest session for a cart, a trial or a draft, and a link to the real account the moment they sign up or sign in. |
|
Package apikey gives users long-lived keys for scripts and integrations: "Authorization: Bearer ubk_…" in place of a session.
|
Package apikey gives users long-lived keys for scripts and integrations: "Authorization: Bearer ubk_…" in place of a session. |
|
Package audit records security events: every mutation operation that ran, successful or refused, with who did it, to whom, from where, and how it ended.
|
Package audit records security events: every mutation operation that ran, successful or refused, with who did it, to whom, from where, and how it ended. |
|
Package captcha refuses chosen operations unless the request carries a captcha token a provider accepts, so a bot cannot sign up, sign in or ask for a reset link at the rate the rate rules allow a human to.
|
Package captcha refuses chosen operations unless the request carries a captcha token a provider accepts, so a bot cannot sign up, sign in or ask for a reset link at the rate the rate rules allow a human to. |
|
deviceauth
module
|
|
|
oauthdevice
module
|
|
|
Package email registers the email identifier kind: normalization, the uniqueness policy, verification links, primary-address bookkeeping, change with undo, and delivery through an app-supplied Mailer.
|
Package email registers the email identifier kind: normalization, the uniqueness policy, verification links, primary-address bookkeeping, change with undo, and delivery through an app-supplied Mailer. |
|
Package emailchallenge signs users in without a password by one challenge that a link and a code both complete, and that always signs in the browser that asked, never the one that opened the mail: better-auth-email-challenge.
|
Package emailchallenge signs users in without a password by one challenge that a link and a code both complete, and that always signs in the browser that asked, never the one that opened the mail: better-auth-email-challenge. |
|
Package handoff moves a signed-in session to another client in one step: a web page hands a native app a short-lived, single-use token, and the app exchanges it for a session of its own.
|
Package handoff moves a signed-in session to another client in one step: a web page hands a native app a short-lived, single-use token, and the app exchanges it for a session of its own. |
|
Package invite is invitation codes for users, better-invite's plugin: a signed-in user creates an invite, either public (a link anyone holding it may use, up to a number of uses) or private (mailed to one address, used once), with an expiry and optionally a role; every use is recorded with who used it and when; and Required makes sign-up refuse anyone without a valid invite.
|
Package invite is invitation codes for users, better-invite's plugin: a signed-in user creates an invite, either public (a link anyone holding it may use, up to a number of uses) or private (mailed to one address, used once), with an expiry and optionally a role; every use is recorded with who used it and when; and Required makes sign-up refuse anyone without a valid invite. |
|
Package jwt issues short-lived JSON Web Tokens from a session, for other services that must know who is calling without sharing the auth database.
|
Package jwt issues short-lived JSON Web Tokens from a session, for other services that must know who is calling without sharing the auth database. |
|
jwtpreset
Package jwtpreset holds example jwt.Template conventions for third-party services that accept a token from your app: Supabase, Hasura, Convex and Firebase custom tokens.
|
Package jwtpreset holds example jwt.Template conventions for third-party services that accept a token from your app: Supabase, Hasura, Convex and Firebase custom tokens. |
|
Package lastlogin remembers how each user last signed in — password, a provider, a magic link, a code, a passkey — so a sign-in page can put the method the person used last in front, and so an app can see which methods its users actually use.
|
Package lastlogin remembers how each user last signed in — password, a provider, a magic link, a code, a passkey — so a sign-in page can put the method the person used last in front, and so an app can see which methods its users actually use. |
|
ldap
module
|
|
|
Package magiclink signs users in with a single-use link sent to one of their identifiers, usually an email address.
|
Package magiclink signs users in with a single-use link sent to one of their identifiers, usually an email address. |
|
Package metadata keeps three JSON documents per user, the shape Clerk made familiar:
|
Package metadata keeps three JSON documents per user, the shape Clerk made familiar: |
|
Package oauth signs users in with identity providers such as Google and GitHub.
|
Package oauth signs users in with identity providers such as Google and GitHub. |
|
oauthtest
Package oauthtest checks an oauth.Provider against the contract the oauth plugin relies on, by driving it against a fake authorization server it starts.
|
Package oauthtest checks an oauth.Provider against the contract the oauth plugin relies on, by driving it against a fake authorization server it starts. |
|
oauthprovider
module
|
|
|
oauthproxy
module
|
|
|
organization
module
|
|
|
password
module
|
|
|
Package phone registers the phone identifier kind (E.164 numbers), verifies numbers with SMS codes, and can sign users in — and up — with a code alone.
|
Package phone registers the phone identifier kind (E.164 numbers), verifies numbers with SMS codes, and can sign users in — and up — with a code alone. |
|
Package pow is a proof-of-work challenge: a client proves it spent CPU time before a call that a rate rule found suspicious is let through.
|
Package pow is a proof-of-work challenge: a client proves it spent CPU time before a call that a rate rule found suspicious is let through. |
|
referral
module
|
|
|
samlidp
module
|
|
|
scim
module
|
|
|
Package sessiondata keeps per-session app data in a table of its own, keyed by session id, for an app that wants the data out of the session record: a value too big for a cookie, a value the session store (Redis, memory) should not hold, or a table the app joins and reports on.
|
Package sessiondata keeps per-session app data in a table of its own, keyed by session id, for an app that wants the data out of the session record: a value too big for a cookie, a value the session store (Redis, memory) should not hold, or a table the app joins and reports on. |
|
siwe
module
|
|
|
sso
module
|
|
|
Package stale finds accounts nobody has signed in to for a long time, mails their owners, and, if the app asks for it, deletes the accounts that never answered.
|
Package stale finds accounts nobody has signed in to for a long time, mails their owners, and, if the app asks for it, deletes the accounts that never answered. |
|
Package terms records which version of the terms each user accepted, and when, and lets the app refuse users who have not accepted the current one.
|
Package terms records which version of the terms each user accepted, and when, and lets the app refuse users who have not accepted the current one. |
|
Package twofactor adds TOTP second factors (authenticator apps) with single-use recovery codes.
|
Package twofactor adds TOTP second factors (authenticator apps) with single-use recovery codes. |
|
Package username adds handle-based identity to the auth core.
|
Package username adds handle-based identity to the auth core. |
|
webhook
module
|
Click to show internal directories.
Click to hide internal directories.