accountkit
One account for every bitbaum product: the account menu, accounts themselves (better-auth: password, magic link, passkeys, 2FA, OIDC) and Sign in with OrangeCat. Styled from @bitbaum/design-tokens.
API and examples
Documentation from source commit d40b44dbcee5 · 2026-11-13. Source documentation can include work beyond the registry release.
- Install
- Password recovery
- Use
- A static site, or a session on another origin
- What is shared, and not configurable
- Theming
- Accounts (`@bitbaum/accountkit/auth`)
- Verify
- Sign in with OrangeCat — `@bitbaum/accountkit/orangecat`
- Password entry
Read the package documentation
One account for every bitbaum product: the account menu (who is signed in, where to go, how to sign out), and Sign in with OrangeCat (@bitbaum/accountkit/orangecat).
Each product had written its own — Loki's AccountMenu, OrangeCat's UserProfileDropdown — and each had learned half of what the other had. Loki took initials only from the name; OrangeCat never rebuilt a name from the email address; OrangeCat had arrow keys and a 44px target, Loki had neither; Loki's public pages had no menu at all, so a signed-in person could not find sign-out. This is the one menu, with both halves.
It knows nothing about how you sign in. NextAuth, Supabase, better-auth: you pass the person, the places, and a sign-out function.
Install
Use the current verified installation command on the AccountKit package page. Fleet's package registry is the source for the verified artifact and install transport; npm may lag a verified Git release. Release history distinguishes the registration designs shipped in different versions.
dist/ is committed, so the github: install needs no build step and no allowBuilds entry.
Password recovery
SignInForm includes password recovery when signInMethods(env, mail.configured) reports passwordReset. It uses the product's Better Auth client and sends the reset link back to its existing signInPath, preserving the local next path. That page must remain reachable when signed out and must render SignInForm when the reset callback carries token or error=INVALID_TOKEN. The form removes the token from browser history after reading it. Products with a separate reset route can render PasswordRecoveryForm from @bitbaum/accountkit/auth/react.
PasswordRecoveryForm takes a PasswordRecoveryClient: only requestPasswordReset and resetPassword. A Better Auth client satisfies it as is. A product on Auth.js (or any other session system) passes a small adapter object with those two functions, each resolving { error } on failure, and keeps its own users, passwords, roles and sessions. A call that rejects, such as a dropped connection, leaves the form usable with the unavailable message and the typed address kept, so the person can retry.
import type { PasswordRecoveryClient } from "@bitbaum/accountkit/auth/react";
const client: PasswordRecoveryClient = {
requestPasswordReset: ({ email }) => post("/api/auth/forgot-password", { email }),
resetPassword: ({ token, newPassword }) =>
post("/api/auth/reset-password", { token, password: newPassword }),
};
The standard mail adapter is createAuthMailer from @bitbaum/accountkit/auth/mail:
import { createAuthMailer } from "@bitbaum/accountkit/auth/mail";
const mail = createAuthMailer({ site: { title: "Example", url: "https://example.ch" } });
Install its optional peer @bitbaum/mail-kit. The adapter reads deployment configuration lazily, uses the fleet sender and the product's reply address, and supports subject overrides. It rejects malformed or foreign-origin links and never logs a token, address or credential. Configuration still needs a real Resend key and working sender; this adapter does not claim delivery readiness.
The sender must actually deliver account mail: createAuthRuntime({ mail }) calls mail.send("reset", to, url). A deployment with mail.configured=false does not offer recovery and disables its server request handler. A no-op sender does not implement recovery. authLabelsFor(locale) includes recovery words; older product label overrides remain compatible through the English fallback.
The package checks the complete token/callback/reset journey against Postgres, including account-existence parity, expiry, one-time use, session revocation and external-redirect rejection. Its browser suite checks the forms at 320px, 390px and desktop width. Consumers must also verify their own page wiring and delivery.
import "@bitbaum/accountkit/styles.css";
import { AccountMenu } from "@bitbaum/accountkit";
Use
<AccountMenu
user={{ name: session.user.name, email: session.user.email, image: session.user.image }}
groups={[{ id: "nav", items: [{ id: "settings", label: "Settings", href: "/settings" }] }]}
extra={<ThemeToggle />}
onSignOut={() => signOut({ callbackUrl: "/sign-in" })}
renderLink={(props) => <Link {...props} />}
/>
onSignOutmay return a promise. While it runs the row says so; if it rejects, the menu stays open and says sign-out did not complete. A sign-out that fails silently is the one thing this menu must never do.renderLinkkeeps your router (Next<Link>); the default is a plain<a>.extrais for rows that are not places, such as a theme switch.shownon an item or a group, andextraShownforextra:"always"(the default) or"narrow", shown below 768px only. For a row that repeats a control the header itself carries from that width up, such as a theme toggle that ishidden md:inline-flexin the header: on a phone the menu row is the only way to it, on a desktop it would be the same control twice. The package's stylesheet hides it in a media query, so the server render and the first paint are already right (no width is read in script, nothing flashes), the arrow keys step over a hidden row, and a group whoseshownis"narrow", or whose every item's is, goes with its divider.
tsx groups={[ { id: "places", items: places }, { id: "appearance", shown: "narrow", items: [{ id: "theme", label: "Appearance: Auto", onSelect: cycleTheme }] }, ]}
accountsandonSwitchAccountlist the other accounts this person can become (a second identity, a work account) under who is signed in, and switch on a tap. Each is{ id, user, note? };notesays what the account is to the person ("Main account") and leads its second line. Their email is never shown.onSwitchAccount(id)may return a promise: the row says it is switching, and if it rejects the menu stays open and says the switch did not complete, as sign-out does. With no accounts, or noonSwitchAccount, the menu is unchanged. An account may carrywaiting, a count of what waits there (unread messages, notifications): it is shown at the end of its row, capped at 99+, and as a dot on the trigger so it is known before the menu is opened.labelstranslates every string:labels={{ trigger: "Konto: {name}", signOut: "Abmelden" }}.
A static site, or a session on another origin
A site with no accounts of its own (static files) shows the account of the product that holds it. That product answers a small JSON summary with credentialed CORS for the site's origin, at least { "signedIn": false } or { "signedIn": true, "user": { "name", "handle", "image" } }. Three pieces, all from the browser-safe . entry:
AccountControlis the header control in all three states:state="loading"is an empty box the trigger's exact size (hidden from assistive technology, not focusable), so nothing moves when the answer arrives;state={null}is one "Sign in" link, the trigger's height, in the same slot; a person isAccountMenu, unchanged, with the rest of the props. The link's text issignIn.label, elselabels.signIn, else "Sign in". Ajavascript:href becomes#.accountSignInHtml({ href, label })returns byte for byte whatAccountControlrenders signed out, withhrefandlabelescaped, so a page can print the signed-out state without React and mount the control over it later.fetchAccountSummary(url, { signal?, fetch?, timeoutMs? })is a GET withcredentials: "include"andcache: "no-store". It resolves the parsed body when the answer is 2xx JSON with a booleansignedIn, andnullon a network or CORS failure, an abort, a timeout, a non-2xx status, a body that is not JSON or one withoutsignedIn, or an injectedfetchthat resolves to something that is not a response. The promise never rejects, never retries and stores nothing, so the header fails closed to "Sign in".timeoutMs(default 8000; 0, a negative number orInfinityturns it off) bounds the whole read, body included, so a stalled server cannot leave the header loading for ever; it is combined with yoursignal(AbortSignal.anywhere the runtime has it, by hand otherwise), and whichever fires first resolvesnull.
import { useEffect, useState } from "react";
import { AccountControl, accountSignInHtml, fetchAccountSummary } from "@bitbaum/accountkit";
type Summary =
| { signedIn: false; links: { signIn: string } }
| { signedIn: true; user: { name: string; handle: string; image: string | null }; links: { signIn: string; signOut: string } };
// Printed into the header by the build, before any script runs:
// accountSignInHtml({ href: "https://accounts.example/sign-in" })
function Account() {
const [summary, setSummary] = useState<Summary | null | "loading">("loading");
useEffect(() => {
const controller = new AbortController();
fetchAccountSummary<Summary>("https://accounts.example/api/session", { signal: controller.signal }).then(setSummary);
return () => controller.abort();
}, []);
const state = summary === "loading" ? "loading" : summary?.signedIn ? summary.user : null;
return (
<AccountControl
state={state}
signIn={{ href: summary && summary !== "loading" ? summary.links.signIn : "https://accounts.example/sign-in" }}
onSignOut={() => {
if (summary !== "loading" && summary?.signedIn) location.assign(summary.links.signOut);
}}
/>
);
}
returnPath(from, fallback = "/") is exported from . as well (it is the same function ./orangecat exports): it accepts only a same-origin path and refuses protocol-relative paths, backslashes, control characters and absolute URLs.
What is shared, and not configurable
- The name is never built from the email. No name:
@handle. No handle: "Account". - Initials come from the name only. No name and no photo: a person glyph.
- A photo that fails to load falls back to initials, then the glyph.
- 44px trigger and rows. The panel's width is capped by the screen and it aligns to the trigger's inside edge. Where the trigger is not the last control in its row (a menu button after it), the open panel is measured and moved back inside the screen; where it already fits, it is not moved. It is measured again while open when the window resizes and, without a window resize, when the panel or the row it sits in changes size or a control is added to or removed from that row (a
ResizeObserverand aMutationObserver, where the runtime has them). The browser check holds it inside 320 and 390px with a 44px control before or after the trigger, for bothalignvalues. - Escape closes and returns focus to the trigger, wherever focus was. Arrows, Home and End move between items. A click outside closes.
Theming
Every colour, radius and font is an --acct-* variable. The defaults read @bitbaum/design-tokens at zero specificity, so apps on those tokens match with no work and an app's own :root always wins. An app whose tokens are full colours rather than HSL triplets (Loki's are OKLCH) maps them once:
:root {
--acct-panel: var(--surface-overlay);
--acct-fg: var(--text-primary);
/* … */
}
Accounts (@bitbaum/accountkit/auth)
Every product owns its accounts, and they are the same account system everywhere: email and password, a magic link, passkeys, two-factor codes, the shared bitbaum sign-in and Sign in with OrangeCat (each shown only when configured). Built on better-auth 1.x, so a product writes none of it.
// lib/db/schema.ts — one identical migration in every product
export * from "@bitbaum/accountkit/auth/schema";
// lib/auth.ts
import { createAuthRuntime } from "@bitbaum/accountkit/auth/next";
export const { GET, POST, getSession, requireUser, authStatus, getAuth } = createAuthRuntime({
site: { url: "https://app.example.ch", title: "Example", slug: "example" },
mail: { configured, send }, // your mail-kit sender; never log the link
isDatabaseConfigured: (env) => Boolean(env.DATABASE_URL),
getDatabase: () => db, // Drizzle, built on first use
});
// app/api/auth/[...all]/route.ts
export { GET, POST } from "@/lib/auth";
// lib/auth-client.ts
import { createAuthClient } from "better-auth/react";
import { authClientPlugins } from "@bitbaum/accountkit/auth/client";
export const authClient = createAuthClient({ plugins: authClientPlugins() });
The screens are shared too (@bitbaum/accountkit/auth/react): SignInForm, SignUpForm and AccountPanel. They hold the logic and take the product's words (labels: authLabelsFor(locale) from @bitbaum/accountkit/auth has English, German, French, Italian, Romansh and Russian, so a product keeps no copy of its own; override account.roles if its roles have other names) and look (classes; without them the acct-auth-* classes in styles.css apply, on --acct-* variables):
<SignInForm client={authClient} methods={signInMethods(process.env, mailConfigured)}
labels={myLabels} classes={{ button: "btn-primary", input: "field" }}
next="/de/matters" signInPath="/de/sign-in" signUpLink={<Link href="/sign-up">…</Link>} />
A product whose people start from a code it gave them (AOZ's personal codes) passes codeDoor to SignInForm ({ open, label, placeholder, hint, uppercase, param, first }: its words for the code, the query parameter a personal link carries it in), served by the server's domainCredentials; and renders ClaimForm for the first password (proof: { kind: "code", label, prefix, … } for a typed code, { kind: "given", credential } for a claim link the page holds), served by provisioning. Both call through the client's $fetch.
A product whose rows were keyed on an OrangeCat actor id before it had accounts passes legacyIdentityProvider: "orangecat": a person whose first way in was OrangeCat keeps that id as user.actorId, so nothing has to be migrated; everyone else's actorId is their user id.
What is the same everywhere, and not configurable per product: one password rule, MIN_PASSWORD_LENGTH = 1 and MAX_PASSWORD_LENGTH = 128 (exported from @bitbaum/accountkit/auth/password, browser-safe, together with passwordProblem(password); products that keep their own account code import the rule from there), the same in sign-up, reset and the server, with no strength meter, no hint text and no other requirement; a sign-up asks for an email and a password, nothing else; sessions of 14 days; no IP addresses stored; an address is never an identity (a new method joins an account only when the signed-in person links it); provider tokens are never kept; a sign-up cannot choose its role; one rate limiter keyed on the proxy's hop (limitkit), with a stricter bucket for anything that sends mail. signInMethods(env, mailConfigured) says which buttons to show, as booleans, plus signinProviders: the names the shared sign-in (Morulia) publishes at <SIGNIN_ISSUER>/api/providers. Its button reads "Continue with Google, GitHub or Facebook" for exactly those names (signinButtonLabel(labels, names), from withSigninProviders and listOr in every shipped language), and is hidden until the service has answered with at least one. The list is read in the background when the auth instance is created and again at most once a minute; a failed read keeps the last good list.
Needs BETTER_AUTH_SECRET (32+ characters; a product moving off next-auth may keep its AUTH_SECRET) and a database; without them every auth route answers 503 accounts_unavailable instead of crashing. Peer dependencies: better-auth, @better-auth/passkey, drizzle-orm, and next for /auth/next.
Verify
pnpm run verify # format, lint, types, build, unit + render tests, real-browser checks
The browser checks run the demo at 390px in light and dark: 44px targets, no sideways scroll with the menu open, Escape after a mouse open, arrow keys, outside click, a broken photo, an anonymous account, and a failing sign-out.
Sign in with OrangeCat — @bitbaum/accountkit/orangecat
Nine apps wrote this themselves and each learned something the others had not. This is all of it, once. Server-only, no next-auth import (the types are structural), so it serves Auth.js v5 and next-auth v4.
import { orangecatClient, orangecatProvider, syncOcSession } from "@bitbaum/accountkit/orangecat";
const orangecat = orangecatClient(); // ORANGECAT_OAUTH_CLIENT_ID / _SECRET / _ISSUER, or null
export const { handlers, auth, signIn, signOut } = NextAuth({
session: { strategy: "jwt" },
pages: { error: "/auth/error" },
providers: orangecat ? [orangecatProvider(orangecat)] : [],
callbacks: {
jwt: ({ token, account, profile }) => syncOcSession({ token, account, profile }, orangecat),
session: ({ session, token }) => ({ ...session, actorId: token.actorId }),
},
});
What is not configurable, and why:
client_secret_postand PKCE. OrangeCat's token endpoint accepts onlyclient_secret_post; the Auth.js default is answered with a 400 that reads "client_id is required". PKCE is required even with a secret.profile()has noemail. OrangeCat auto-confirms addresses, soemail_verifiedproves nothing. With anemail, Auth.js looks a new account up by it and either links (takeover) or refuses. The address rides along ascontactEmail, contact data only. The identity issub(token.actorId), never the email.- A revoked grant ends the session.
syncOcSessionrefreshes once the access token expires;invalid_grantdropsactorId(read that, nevertoken.sub, as "signed in"); any other failure keeps the session and retries in 60 s. Safe insidejwt()since orangecat#1212 (confidential clients keep their refresh token).
Entry: signIn("orangecat", { redirectTo: returnPath(from) }, authorizationParams({ mode, email, provider })) → prompt=create, login_hint, idp_hint (google, github — the providers OrangeCat has switched on). returnPath accepts only same-origin paths.
Apps with their own user table:
withOrangecatIdentity(adapter, store, { keepTokens })— an OrangeCat sign-in resolves bysubalone; a new sub always creates a new user, stored with its OrangeCat address when free andorangecat-<sub>@users.invalidwhen taken. Linking an existing account is Auth.js's own path (sign in, then sign in with OrangeCat).keepTokens: truealso writes the accounts row (for an app that calls OrangeCat on the person's behalf).resolveOrangecatUser(store, identity)— the same, for a callback (next-auth v4, no adapter). Survives the insert race.decideOrangecatSignIn(input, policy)— the pure rule, withwhenEmailTaken/whenNoEmail: "refuse"for an app that prefers to send the person to connect from their profile.mintLinkToken/readLinkToken— evig's "Connect OrangeCat": a 10-minute signed cookie set from inside the session, so the identity that comes back attaches to that account and no other.emailEarnsPromotion(provider)— never ADMIN_EMAILS promotion for an OrangeCat login.mayReceivePasswordReset({ email, hasPassword, orangecatLinked })— no reset link for an account OrangeCat created, or for a placeholder.
The error screen
import { SignInError } from "@bitbaum/accountkit";
// app/auth/error/page.tsx — Auth.js `pages.error`
<SignInError error={searchParams.error} retry={restartSignIn} retryFields={{ from }} home="/" />
Import @bitbaum/accountkit/styles.css (once, in the root layout or globals) and map the --acct-* variables onto the app's tokens, or the screen renders as bare text — solon shipped exactly that once, and no lint or typecheck can see it. Look at it at 390px before merging.
Try again restarts sign-in (a server action calling signIn("orangecat", …), or a GET route that does). It never goes home, and it never prints the provider's error code. No hooks: renders in a server component.
MIT.
Request-dependent sessions
getSession() is a server-component request API. It reads Next headers before checking deployment readiness and lets framework rendering signals propagate. A build without account secrets must not cache a signed-out page or redirect for all future sessions. Calls outside a request are errors, not signed-out users.
A code in the sign-in link's email
A sign-in link opens wherever the mail app opens it, often another browser or another device than the one where the person asked. When the product's mailer says it can carry a code (codes: true on the AuthMailer; createAuthMailer from @bitbaum/accountkit/auth/mail has it), the same email also carries a six-digit code, and SignInForm offers a field for it under "We sent a link". It is the same method, the address proven by mail: no third party and no key. Ten minutes, three tries, stored hashed, and a second factor applies to it as to every other way in. A product with its own mailer reads extra.code in send(kind, to, url, extra) and sets codes: true; until it does, nothing changes. better-auth's other email-code endpoints (a code on its own, reset, verification, email change) answer 404.
Lightning login
ACCOUNTKIT_LIGHTNING=1 turns on LNURL-auth (LUD-04): a QR code on the sign-in and sign-up cards, and "Add Lightning wallet" in the account panel. The person's wallet signs a one-time challenge with a key it derives for this site and calls /api/auth/lightning/callback; the page, polling /api/auth/sign-in/lightning, is signed in once the signature checks out. The key is the sign-in method (providerId: "lightning"), the person gets a placeholder address, and a second factor applies. Only the browser that showed the code can claim it. authClientPlugins() includes lightningClient().
The product's own mail template
createAuthMailer({ site, render, codes: true }) sends the product's own template (its languages, its HTML) through the shared transport, with the same origin check, and puts the sign-in code in extra.code for the template to print. own: { verify: async (to, url) => sent } replaces one kind of mail with the product's own; resolving false sends the shared one instead.
Second-factor policy
An enabled second factor applies to password, email-link, passkey and OIDC sign-in. The server reuses BetterAuth's native signed challenge, trusted-device validation, attempt limits and expiry. A primary credential alone does not leave an authenticated session while the challenge is pending.
Shared forms complete both JSON twoFactorRedirect responses and app-local ?twoFactor=1 redirects. Custom clients must handle those states and supply their local sign-in screen as errorCallbackURL for email/OIDC callbacks. SignUpForm accepts an optional signInPath for nonstandard route names; standard /sign-up routes infer the sibling /sign-in. Challenge URLs contain no bearer credential.
Password entry
The shared registration form has one password field with a localized show/hide control, preserves paste and password-manager autofill, and asks for no real name. The password reset form uses the same field (one input, the same show/hide control), so sign-up and reset cannot drift. Both forms and the server read the one rule from src/auth/password.ts; there is no other password requirement and no hint text. Passwordless methods keep their existing flow. Products consume this behavior through the package rather than duplicating it.
A product that keeps its own sign-in and its own bcrypt/bcryptjs uses @bitbaum/accountkit/auth/password for the rule (a require build exists for CommonJS backends), @bitbaum/accountkit/auth/password-field for the field and @bitbaum/accountkit/auth/hash for hashing. createPasswordHasher(bcrypt) hashes the SHA-256 of the password, so a long password is not cut at bcrypt's 72 bytes, and still verifies old plain bcrypt hashes; its verify returns rehash: true when a sign-in matched an old hash, and the product then stores hash(password). No one has to reset a password.
When moving those accounts into the shared runtime, pass legacyBcrypt: bcrypt to createAuthRuntime or createAuthInstance and import the existing hashes under the same stable user ids. The runtime then verifies plain bcrypt and $bs1$ hashes as well as native scrypt hashes. New registrations and password resets write native scrypt; reset still revokes existing sessions. Identity and role mapping, migration verification and product journeys remain the consumer's responsibility. This option alone does not migrate any data.
A product that stored its own format instead passes legacyPassword: { matches(hash), verify(password, hash) }. matches claims a stored hash by its shape and is asked first, so it must claim only that product's hashes; verify answers whether the password fits. It works alone or beside legacyBcrypt, and new passwords are native scrypt either way.
Moving a product off Auth.js
A product whose pages call next-auth/react can run on the shared runtime before any page changes. @bitbaum/accountkit/auth/nextauth-compat answers that client protocol (session, csrf, providers, signout, each credentials callback, and signin/<oidc> for every configured OIDC client) from AccountKit:
const compat = createNextAuthCompat({
runtime: sharedAuth, // createAuthRuntime(...)
siteUrl: () => process.env.AUTH_URL!,
signInPath: "/login",
landing: "/dashboard",
toSession: async (shared) => productSessionFromRows(shared.user.id),
credentials: {
credentials: { name: "Email", resolve: async (form) => ({ email: String(form.get("email")) }) },
},
});
// app/api/auth/[...nextauth]/route.ts, with the switch on:
export const { GET, POST } = compat.route;
The product supplies only what is its own: the session shape (re-read from its rows on every request), which address each credentials form signs in (or a refusal code such as an account lock), the codes its login page reads, and hooks after a sign-in or a refusal. sharedRuntimeEnabled() (@bitbaum/accountkit/auth/switch) reads the one switch, AUTH_RUNTIME=accountkit. sessionFor(headers) serves a proxy, currentSession() a server component, and sessionIdFor(headers) names the session making a change so the product can keep it while ending the others. AccountKit's own sign-up, reset and password endpoints answer 404 through it, so the product's writers stay the only ones until it adopts AccountKit's screens.
When the product renders SignInForm, SignUpForm and AccountPanel and has retired its own credential writers, it passes screens: "accountkit": every AccountKit endpoint opens (magic link, passkeys, two-factor, recovery, password change), and useSession and signOut on its remaining pages keep answering with the product's own session shape.
accountkit-rehearse-import <import.sql> runs a product's own import SQL against DATABASE_URL in one transaction that always rolls back, and prints only counts. It uses the product's pg or postgres driver. @bitbaum/accountkit/auth/compat-testing gives journey tests a client that speaks what next-auth/react sends and keeps the cookie jar.
A product's own plugins
plugins (both createAuthRuntime and createAuthInstance) mounts a product's own better-auth plugins for its domain, such as organization() for workspaces, after AccountKit's own. They add endpoints and tables; the shared sign-in methods, limits and cookie rules stay AccountKit's. Pass their tables in schema under the plugin's model names (organization, member, invitation), and a session table with any column the plugin adds.
A product served on more than one host (a tenant host beside its platform host) lists the others in site.trustedOrigins, or passes a lookup when its hosts are data. Their requests pass the origin check and keep their own host-only cookies; mail links and passkeys use site.url. A lookup that fails trusts only site.url.
A product's own row for each person
onAccountCreated (both createAuthRuntime and createAuthInstance) is called for every new person, however they came in: password sign-up, an email sign-in link, OrangeCat or another OIDC provider. It runs as each sign-in method is attached; a person created without one (a first email sign-in link) is reported once, as soon as they exist, with providerId: NO_SIGN_IN_METHOD and accountId set to their user id. A product creates its own row there (idempotently) and needs no after-hook on /magic-link/verify.
onAccountDeleted({ userId, email }) is called once a person's account is deleted (the account panel, or any path that deletes the user), so the product removes or anonymises its own row. It runs only after the deletion. A product that must refuse a deletion refuses before it starts, with a plugin before hook on /delete-user (and /delete-user/callback); that stops it before anything is deleted, and onAccountDeleted is not called. A throw in either hook is logged and never blocks the sign-in or undoes the deletion, so a product whose row must go in the same transaction keeps a database trigger.
A product with a duty to keep what an account holds (a clinic keeps medical records for years) passes accountDeletion: false: /delete-user answers 404 and deletes nothing. It gives AccountPanel its own way out as deletion, for example a link to its erasure request, which the panel shows in place of the delete control, beside "Sign out". A product that shows and edits the person's name on its own page passes ownProfile to AccountPanel, which then leaves its Profile section out.
Account tables beside a product's own
A product whose tables already use the standard names (a NextAuth users, accounts, sessions) creates the account tables under a prefix and passes them to the runtime: const tables = createAuthTables("auth_"), then schema: tables (both createAuthRuntime and createAuthInstance). The columns are identical to the standard set; only table and index names change.
Confirming an address never stands in the way
By default a password account signs in the moment it is created, and an existing account signs in whether or not its address was ever confirmed. With mail, every sign-up is also sent a confirmation link; following it sets user.emailVerified. A product that keeps some powers for confirmed addresses (staff, payouts) reads emailVerified on the session itself.
A product that cannot let an unconfirmed address in passes emailConfirmation: "before-sign-in" to createAuthRuntime / createAuthInstance, and the same value to signInMethods(env, mailConfigured, { emailConfirmation }) so its forms say "check your inbox". It takes effect only with mail: without mail the link could never arrive.
UUID ids for a product keyed on uuid
A product whose own rows reference people by a uuid column (evig's users) passes ids: "uuid" (both createAuthRuntime and createAuthInstance). Every id the runtime mints is then a random UUID, so a person AccountKit creates itself, at a first OIDC sign-in or through its own sign-up, can be given the product's row under the same id in onAccountCreated. Imported ids stay as they were; without the option the ids are better-auth's own strings.
Domain credentials during migration
createAuthRuntime and createAuthInstance accept an optional domainCredentials.verify(credential) callback. It returns null for an invalid proof, or { userId, bindSession? } for an existing shared user. This enables POST /api/auth/sign-in/domain with { credential }; use the runtime's POST handler so the shared credential limiter applies. Never accept a user id from the request as the verification result.
bindSession(sessionId) persists product-owned restrictions before the session cookie is set. For example, a staff code of a dual-identity account grants only the staff surface. Store that scope against the shared session id with cascade deletion and read it on every product request. A failed binding revokes the new session. Domain sessions have fixed expiry and cannot enroll credentials, change account security or list other sessions. Show a password/passkey/provider sign-in action before offering account management. An account with an enabled second factor must use another configured primary method; domain proof alone never bypasses MFA. The shared tables require no change for this option.
First passwords and linking a second identity
A product that created people before they had a password (an invitation, a login code) passes provisioning.resolve(credential). It returns null, or { userId, link?, complete?, release? } for the shared user that holds the identity the proof names. This enables POST /api/auth/provision/claim with { credential, email, password, name?, callbackURL? }, rate limited as a credential. Take a single-use proof inside resolve and give it back in release, which runs on every failure after it.
- A user with no password gets one, under its existing id, at the address typed.
An address that cannot receive mail (.invalid) is refused. A verified address is never replaced; the same address keeps its verification, a new one starts unverified.
- An address that belongs to another account joins this identity to it only on
that account's own password, then calls link(targetUserId). Without link the claim is refused. If that account has no password yet (invited, never claimed), the claim is refused with CLAIM_EMAIL_NEEDS_RECOVERY: recovery through its mailbox comes first.
- An identity that already has a password is refused; sign in or recover.
- The person is signed in at once (
status: "signed_in"); with mail an
unverified address also gets its confirmation link. A product that set emailConfirmation: "before-sign-in" gets the link and no session instead (status: "verify_email"); the link signs them in. An account with a second factor is linked but must still sign in (status: "sign_in").
Refusals carry the codes in CLAIM_ERRORS (@bitbaum/accountkit/auth).
A shorter idle limit for some people
sessionLifetime(userId) returns seconds, or nothing for the shared default (14 days). For a person it names, a session idle longer than that is deleted on its next request, an active one slides to now + limit at most once an hour, and the shared 14-day refresh never applies. Products use it where their own rule is stricter, for example staff on 8 hours.
A used password-reset link verifies the address it was sent to, unless the account's address changed after it was sent. Recovery therefore leaves an imported or invited account with a usable sign-in when mail is configured.
Changelog and releases
Read the repository changelog
This maintained file was started on 2026-10-27. The entries below were reconstructed from the linked published releases; they are retrospective records, not claims that this file existed at release time.
Unreleased
2026-11-13: rows shown only below 768px (shown: "narrow")
AccountMenu: an item or a group may carryshown: "always" | "narrow"
(default "always", so every product is unchanged), and extra has the same choice as extraShown. A "narrow" row is in the menu below 768px only. Found in OrangeCat's app-shell audit (2026-11-12): from md up its header carries a theme toggle and the menu also showed "Appearance", the same control twice at one width; on a phone the header toggle is hidden and the menu row is the only one, so it must stay there. OrangeCat hid the row with a width read in script, which is wrong on the server render and flashes. The package's stylesheet now hides it in a @media (min-width: 768px) rule; the arrow keys skip a row that is not laid out, and a hidden group takes its divider with it (the first group still shown after the identity block draws no line of its own). groupShown(group) and the type AccountRowShown are exported. The browser check opens a new demo row at 390, 767, 768 and 1280px, light and dark: the narrow rows are shown and reached by the arrows below 768px, hidden and skipped from 768px, one divider between the groups shown, nothing scrolls sideways. Render tests cover groupShown and the media query.
2026-11-12: OrangeCat first among the "Continue with …" buttons
- Fix: on a product with both OrangeCat and the shared sign-in switched on,
"Continue with Google or GitHub" stood directly above "Continue with OrangeCat", and read as that button's heading (found on BiasLens's sign-in at 1920px, 2026-11-12). OidcButtons now lists OrangeCat, the fleet's own account, first, then the shared sign-in, then a product's own GitHub app. The render test fails on the old order. Nothing else about the buttons, their words or their classes changes.
2026-11-12: AccountControl, fetchAccountSummary, the panel kept on screen
These entries are this change alone; the ones under "Earlier unreleased entries" below predate it (some of them shipped in 0.29.0).
- Fix: the open
AccountMenupanel ran off the screen when the trigger was
not the last control in its row. Found 2026-11-12 in Bitbaum's header, where a menu button follows the trigger: at 390px the panel's left edge was at -112px and its text was cut off. The panel was pinned to the trigger's edge, which fits only when nothing follows it. The menu now measures the open panel and, only if it crosses an edge, moves it back inside the screen (--acct-shift, an offset of the edge the panel is pinned by, so the move is made in layout: moved with a transform, the panel sat on screen while the page still scrolled sideways on Chromium 156, and it follows the text direction); a panel that already fits is not moved, so a trigger that is last looks exactly as before. The browser check opens four new demo rows (a 44px control before or after the trigger, align end and start) at 320 and 390px, light and dark: the panel's left is at least 0, its right at most the viewport, nothing scrolls sideways, and arrows, End and Escape still work. It failed on the old stylesheet (left -54px at 320). It also checks that a last trigger's panel still ends on the trigger's edge.
AccountControl: one header control for all three states, so a product
stops writing its own signed-out corner (Loki and Heidi each did). state="loading" is an empty box the trigger's exact size, hidden from assistive technology and not focusable, so nothing moves when the session answer arrives; state={null} is one "Sign in" link (.acct-signin), the trigger's height, to signIn.href; a person renders AccountMenu unchanged. The link's text is signIn.label, else the new optional label signIn, else "Sign in". accountSignInHtml({ href, label }) returns the same signed-out markup byte for byte, escaped, for a static page to print without React. Render tests compare the two, check the escaping of hostile input and that a javascript: href becomes #; the browser check measures the loading box against the signed-in trigger and "Sign in" at 44px.
fetchAccountSummary(url, { signal?, fetch? }): reads a session held on
another origin. A GET with credentials: "include" and cache: "no-store" that resolves the body when it is 2xx JSON with a boolean signedIn, and null on a network or CORS failure, a non-2xx status, a body that is not JSON or one without signedIn, or an injected fetch that resolves to something that is not a response; the promise never rejects. No retries, nothing stored. timeoutMs (default 8000; 0, less or Infinity turns it off) bounds the whole read, body included, and is combined with the caller's signal (AbortSignal.any where the runtime has it, by hand otherwise): whichever fires first aborts the request and the promise resolves null, so a server that stalls cannot leave a header loading for ever. Unit tests with an injected fetch cover each case, the request's method, credentials and cache, a fetch and a body that never settle, the default of 8000ms, the caller's abort with a timeout armed, and the hand-made combination.
- The open panel is placed again while it stays open when the header row
changes without a window resize: a ResizeObserver (where the runtime has one) on the panel, the row the menu sits in (the nearest flex or grid ancestor) and that row's controls, and a MutationObserver for controls added to or removed from the row; both are disconnected when the menu closes or unmounts. The browser check opens the menu in the "followed" rows, then adds another 44px control after the trigger, and separately widens the one already there, without resizing the window: the panel stays inside 320 and 390px. Before, its left edge was at -47px at 320.
returnPathis exported from the browser-safe.entry too. It was only
reachable through ./orangecat, which imports node:crypto, so a static page could not use it. It is the same function; new tests check that protocol-relative paths, backslashes, control characters and absolute URLs fall back, and that no node: import reaches the . entry.
- The browser check honours
CHROMIUM_PATH, for a machine whose Chromium is
not the one this Playwright version downloads.
Earlier unreleased entries
AccountMenushows what waits in another account. An account in
accounts may carry waiting, a count (unread messages, notifications). It is shown at the end of that account's row, capped at 99+, and as a dot beside the trigger, so a person knows before opening the menu. The trigger's accessible name says so too. Zero, absent or not a positive number shows nothing, and so does a count with no onSwitchAccount. Two new labels (waiting, waitingElsewhere).
- The shared sign-in (Morulia) and OrangeCat are told the page's language.
OidcButtons, SignInForm and SignUpForm send OIDC ui_locales on their authorize request: the new optional locale prop, or else the page's <html lang>, so an app that passes nothing still sends the right language. A sign-in started on Heidi's German pages from an English browser used to land on an English provider page. GitHub is not sent it. uiLocalesFor is exported.
AccountMenuswitches accounts. New optionalaccounts(each
{ id, user, note? }) and onSwitchAccount(id): the other accounts a person can become are listed under who is signed in, each a face (photo, initials from the name, or a glyph), a name and one line with the note and the handle, never the email. A tap switches; while the promise is pending the row says so, and a switch that rejects keeps the menu open and says it did not complete. Arrow keys reach the rows. Three new labels (switchAccount, switching, switchFailed). Without the new props the menu renders exactly as before. Built for OrangeCat's identities, where one person holds several accounts.
- The optional
@bitbaum/mail-kitpeer accepts 0.3 and 0.4 as well as 0.2.
Both added only new exports (renderMail, unsubscribe signing, the SMTP transport); the three AccountKit calls (conventionalFrom, isMailConfigured, sendMail) are unchanged, and AccountKit's own tests already run against 0.3.0. Apps on mail-kit 0.3 or 0.4 no longer get a peer conflict.
- Screens for a product's own codes (#67).
SignInFormtakescodeDoor: a
quiet button opens one field in the product's words (AOZ: "Zugangscode"), sent to the server's /sign-in/domain (domainCredentials). A personal link's ?<param>= opens it and signs in once, then leaves the address bar. An account with a second factor is refused in AccountKit's words with the way back to email on the same screen. ClaimForm is new: a code (or a claim link's credential the page holds), an email and a first password, sent to /provision/claim (provisioning), saying what happened: signed in, asked to confirm the address, or asked to sign in for a second factor; every CLAIM_* refusal is a sentence. New optional labels code and claim in all seven languages; the client's $fetch carries both calls.
- Fix: 0.26.0's
lightningClient()wrote better-auth'sBetterFetchtype
into the published declaration, so a product whose better-auth resolved another @better-fetch/fetch could not pass authClientPlugins() to createAuthClient (BiasLens's typecheck failed). The plugin now types its one call by shape; a test keeps better-fetch names out of the declaration, and test/types/client.ts compiles the product's own wiring.
- A product's own GitHub app (
githubSignIn: true) now shows on the shared
screens: signInMethods(env, mail, { githubSignIn: true }).github, a "Continue with GitHub" button beside OrangeCat on sign-in and sign-up, and the same link button as OrangeCat's in the account panel. The two variables alone still offer nothing. This lets Loki, which keeps its GitHub sign-in (the owner, 2026-11-02), move onto SignInForm.
- Lightning login (LNURL-auth, LUD-04): the person's own Lightning wallet
signs a one-time challenge shown as a QR code (or opened by a lightning: link on the same device). Free, no key, no third party, nothing paid; the signed key is a sign-in method (providerId: "lightning"), never an email. Opt-in per deployment with ACCOUNTKIT_LIGHTNING=1 (signInMethods(...) .lightning); SignInForm and SignUpForm offer "Sign in with a Lightning wallet", AccountPanel adds one to an account. Only the browser that showed the code can finish the sign-in; a challenge lives five minutes and is used once; a second factor applies. Verified against LUD-01's example and a signature made by OpenSSL. New dependencies: @noble/curves, @scure/base (audited, by the same author), uqr (the QR code, drawn as one SVG path).
createAuthMailertakes a product's own words and look: `render(kind,
url, extra) returns the subject, text and HTML (with extra.code for a sign-in link; codes: true says the template prints it), and own lets a product send its own mail for one kind (evig's 6-digit confirmation), falling back to the shared mail when it cannot. The origin check, the transport and the code stay the package's. It no longer sends to an address that cannot receive mail (*.invalid` placeholders). Products that kept their own mailer for their languages (causius, diplodoctor, keller) can now use the shared one.
- The sign-in link's email also carries a six-digit code, typed on the page
that asked for the link. A link opens wherever the mail app opens it, often another browser or another device; the code finishes the sign-in where the person is. It needs nothing beyond the mail a product already sends and no third party. Ten minutes, three tries, stored hashed; a second factor applies as to every other way in. Only a mailer with codes: true (createAuthMailer has it) gets one, and the link request then answers { code: true }, so SignInForm shows the field only when the email has the code. better-auth's own code endpoints for sending, reset, verification and email change stay closed (404): recovery keeps its one path. New labels codePrompt and signInWithCode in all six languages; authClientPlugins() adds emailOTPClient().
accountDeletion: false(createAuthRuntimeorcreateAuthInstance)
turns off self-service deletion: /delete-user answers 404 and nothing is deleted. AccountPanel takes deletion, the product's own way out (such as a link to an erasure request), shown in place of the delete control. Vita keeps medical records for ten years under Swiss law, so its patients ask for erasure instead of pressing a button; before this, adopting AccountKit's panel would have given them one.
AccountPaneltakesownProfile: a product whose own row holds the
person's name (and shows it on its own profile page) leaves the panel's Profile section out, so one person never has two names that drift apart.
- The shared sign-in's button names only the providers Morulia has switched
on. signInMethods reads them from <SIGNIN_ISSUER>/api/providers (cached per issuer, refreshed at most once a minute in the background, the last good list kept on a failed read) and returns them as signinProviders; signin is true only when that list has at least one name. Until 0.24 the button read "Continue with Google, Apple, GitHub, X or Facebook" whatever was configured, so an app could name a provider that led nowhere. The label is withSigninProviders ("Continue with {providers}") joined with listOr, in all six languages; a product's own older withSignin keeps its words. The fallback withSignin no longer names Apple or X, which are paid.
- A button label that keeps a hyphenated word whole now reads as one sentence
again. 0.22.1 put the parts beside each other, and a flex button (AccountKit's own stylesheet, and evig's) laid each one out as its own item: evig's sign-in card read "Stattdessen einen / Anmeldelink per | E-Mail | schicken" in three columns. The parts now sit in one span. The browser check also lays out every word of every button label in every language at 320 and 390px and fails when a word starts above or left of the word before it.
- A product's own GitHub sign-in is opt-in: `createAuthRuntime({ githubSignIn:
true }) (or createAuthInstance). Without it, GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET offer no GitHub sign-in, neither on AccountKit's endpoints nor in nextauth-compat's provider list, which reads the choice from the runtime. In 0.22 their presence alone switched GitHub on, so Loki, whose GitHub app is for repository access, offered a sign-in it never chose. productGithubApp(env, signIn)` takes the choice as its second argument.
- Button labels never cut a hyphenated word across two lines. At 390px evig's
sign-in card read "per E- / Mail schicken": a browser may break after any hyphen. Each hyphenated word in a button label ("E-Mail", "e-mail", "pled-clav") is now kept whole, in every language and in a product's own labels; spaces still wrap. The browser check lays out every button of the sign-in card in every shipped language at 320 and 390px and fails on such a cut.
- A product's own GitHub OAuth app (
GITHUB_CLIENT_IDand
GITHUB_CLIENT_SECRET) signs people in on the shared runtime (opt-in since the entry above), at the callback such an app already has (/api/auth/callback/github), and through nextauth-compat (signIn("github"), or linking for a signed-in person). githubScopes adds the scopes the product acts with (Loki: repo and workflow). The token reaches onAccountCreated, never AccountKit's table. A product without its own app still reaches GitHub through the bitbaum sign-in.
onAccountCreatednow reaches every new person. A first email sign-in link
creates the person without a sign-in method, so the hook (which ran as a method was attached) never ran for them and the product had no row for that person. They are now reported once, as soon as they exist, with providerId: NO_SIGN_IN_METHOD ("none"). Password, OIDC and OrangeCat sign-ups are still reported once, as their method.
- Add
onAccountDeleted({ userId, email }), called once a person's account is
deleted, so a product removes or anonymises its own row. A product's refusal before /delete-user still stops the deletion before anything is deleted, and the hook is not called then.
createNextAuthCompat({ screens: "accountkit" })opens every AccountKit
endpoint (sign-up, magic link, passkeys, two-factor, recovery, password change) beside the next-auth/react session protocol. A product moving off Auth.js renders AccountKit's screens and keeps useSession and signOut on its own session shape until those pages move too. The default, "product", keeps those endpoints closed as before.
- Fix a first OIDC sign-in failing with
unable_to_create_userin a product
whose onAccountCreated writes its own row while a mirror trigger records the same OrangeCat link in AccountKit's table (evig, loki, petvity and surf-your-life all do). That record, for the same person, now gives way to AccountKit's own. A different person holding the link still fails, as it must.
onAccountCreatedreceivestokens(accessToken,refreshToken,
idToken, accessTokenExpiresAt, scope). A product that acts at the provider on the person's behalf (Loki publishing to OrangeCat) keeps them in its own table. AccountKit still stores no provider token.
- Fix
nextauth-compat's OIDC sign-in (OrangeCat, the bitbaum sign-in) on
better-auth 1.7, which serves generic OIDC providers through its core /sign-in/social, /link-social and /callback/<id> endpoints. 0.18.0 still called the removed /sign-in/oauth2, so every such sign-in answered unavailable. The callback opens only for the product's OIDC providers. A journey test now runs the whole round-trip against a synthetic issuer (test/oidc-fixture.js, shared with the second-factor test).
- Add
@bitbaum/accountkit/auth/switch:sharedRuntimeEnabled(env), the
one AUTH_RUNTIME=accountkit switch a product staging AccountKit beside Auth.js reads, free of dependencies so a proxy can ask it cheaply.
- Add
@bitbaum/accountkit/auth/nextauth-compat:createNextAuthCompat
answers next-auth/react's client protocol from the shared runtime, so a product's Auth.js pages run on AccountKit unchanged while it migrates. The product supplies its session shape, credentials resolvers, login codes and hooks. Five products carried a copy of this each. A resolver that throws answers unavailable (never a 500), and a hook that throws is logged without costing the person their sign-in.
- Add the
accountkit-rehearse-importcommand and
@bitbaum/accountkit/auth/import-rehearsal: a product's import SQL in one transaction that always rolls back, reported as counts only.
- Add
@bitbaum/accountkit/auth/compat-testing: a cookie-keeping client for
journey tests of a product on the compat layer.
- Add
legacyPassword: { matches, verify }to the server and Next runtime: a
product's own pre-AccountKit password format (a hand-rolled scrypt hex.salt, say) signs in as it is, alone or beside legacyBcrypt. matches is asked first and must claim only that format; new and changed passwords are native scrypt.
- Changed default: confirming an address no longer blocks sign-in. With
mail configured, a password sign-up is signed in at once and is mailed a confirmation link; an unconfirmed account signs in; a first-password claim signs the person in and mails the link. Following the link still sets emailVerified. Products that need the old wall pass emailConfirmation: "before-sign-in" (server, Next runtime, and the third argument of signInMethods).
- Add opt-in
ids: "uuid"to the server and Next runtime: every id the
runtime mints is a random UUID, so a person AccountKit creates (a first OIDC sign-in, its own sign-up) can get a row in a product whose tables reference people by a uuid column. Stored ids are untouched; the default is unchanged.
- Add
pluginsto the server and Next runtime: a product's own better-auth
plugins (for example organization()), mounted after AccountKit's. Tables in schema beyond the standard six are handed to the database adapter by model name.
- Add
site.trustedOrigins: further hosts of the same product pass the origin
check, each with its own host-only cookie. A lookup may stand in for the list when the hosts are data.
0.13.0 — 2026-10-29
- Add
createAuthTables(prefix)to@bitbaum/accountkit/auth/schema: the
account tables under a name prefix, for a product whose own tables already use the standard names. The default authSchema and table exports are unchanged; the SQL they generate is identical.
0.12.0 — 2026-10-29
- Add opt-in
sessionLifetime(userId)to the server and Next runtime: a
product-chosen idle limit for the people it names. Their sessions end after that much inactivity and slide at most hourly while active; the shared 14-day refresh no longer extends them. Everyone else keeps the default.
0.11.0 — 2026-10-29
- Add opt-in
provisioningto the server and Next runtime:
POST /api/auth/provision/claim gives an identity a product created without a password (an invitation, a login code) its first password under its existing user id. A second identity joins an existing account only on that account's own password; an invited account with no password must recover through its mailbox first. Verified addresses are never replaced, .invalid addresses are refused, a single-use proof is given back on failure, and an unverified address gets a verification link instead of a session when mail is configured. Refusal codes are exported as CLAIM_ERRORS.
- A completed password reset verifies the address the link was sent to, when
that address is unchanged. An imported or invited account with an unverified address could previously set a password and still be refused at sign-in.
0.10.0 — 2026-10-29
- Add opt-in
domainCredentialsto the server and Next runtime for existing
product-owned proofs such as a housing login code. The product verifies the proof and supplies an existing shared user id; AccountKit owns the session, cookies, origin checks and credential rate-limit bucket.
- A
bindSessioncallback can persist narrower product identity scope before
the session is exposed. Failures revoke the new session. Domain sessions cannot manage account credentials, enroll a second factor or list other sessions; they have a fixed expiry. A password, passkey or configured provider is required for account management. Accounts with an enabled second factor must use another configured primary method; a domain proof never bypasses it.
- No consumer data is migrated by these options. Products must preserve their
identity and authorization mappings and exercise their own journeys.
0.9.2 — 2026-10-29
- The shared server and Next runtime accept
legacyBcryptduring credential
migration. Existing plain bcrypt and AccountKit $bs1$ passwords remain readable under their original user ids. New and reset passwords use native scrypt. Products still own identity/role mapping and must verify their data migration and browser journeys; this option does not migrate data itself.
- Database regression coverage checks both imported formats, long-password
suffixes, native registration, recovery token reuse and session revocation.
0.9.1 — 2026-10-28
@bitbaum/accountkit/auth/passwordnow also ships a CommonJS build
(require condition, with .d.cts types), so a CommonJS backend can use the one password rule. The ESM entry is unchanged.
- The reset form asks for the new password once, in the same field with the
same show/hide control as sign-up (PasswordField, shared by both). The "repeat new password" field is gone, along with the recovery.confirmPassword and recovery.mismatch labels; products that pass their own recovery labels can drop those two keys.
- New entry
@bitbaum/accountkit/auth/password-fieldexportingPasswordField,
so a product with its own reset or sign-up page renders the same field (pass classes to style it with the product's CSS).
- New entry
@bitbaum/accountkit/auth/hash(ESM and CommonJS):
createPasswordHasher(bcrypt) for products that keep bcrypt/bcryptjs. New hashes are bcrypt over the SHA-256 of the password (stored as $bs1$…), so the whole password counts instead of its first 72 bytes. Old plain bcrypt hashes still verify, exactly as before, and verify says when to store the new form (rehash on sign-in). Nobody has to reset a password.
0.9.0 — 2026-10-28
- One password rule everywhere: any non-empty password up to 128 characters
(MIN_PASSWORD_LENGTH, MAX_PASSWORD_LENGTH). Sign-up, reset and the server agree; the reset form no longer demands 12 characters and sign-up no longer demands 8. Existing passwords keep working.
- New browser-safe entry
@bitbaum/accountkit/auth/passwordwithpasswordProblem(),
so products still on their own account code use the same rule.
- Removed the
passwordHintlabel (and its text in every language) and the
hint paragraph under the password fields. Products that pass their own labels can drop that key.
0.8.1 — 2026-10-28
PasswordRecoveryFormaccepts aPasswordRecoveryClient(only
requestPasswordReset and resetPassword), so products on Auth.js can use the shared recovery form through a small adapter. Better Auth clients are unchanged. A rejected call (network failure) leaves the form usable.
0.8.0 — 2026-10-26
- Registration uses one password field with an integrated visibility control.
- Added the shared release notification workflow.
Published release and comparison.
0.7.2 — 2026-10-26
- Added registration password confirmation. The registration design was
subsequently replaced by the single-field design in 0.8.0.
- Added the repository's tool-neutral instruction entrypoint.
Published release and comparison.
0.6.3 — 2026-10-25
- Enforced enabled second factors across sign-in methods.
- Added regression coverage for preserving existing accounts when mail is enabled.
- Updated shared package dependency floors.
Published release and comparison.
Other releases and earlier changes remain available in the release archive and commit history.
Release notes
What's Changed
* feat(menu): AccountControl, a panel that stays on screen, remote session read by @catomean in https://github.com/bitbaum/accountkit/pull/92 * fix(auth): OrangeCat first among the "Continue with …" buttons by @catomean in https://github.com/bitbaum/accountkit/pull/93 * chore(deps): raise shared package floors to published versions by @catomean in https://github.com/bitbaum/accountkit/pull/94 * feat(menu): rows shown only below 768px (shown: "narrow") by @catomean in https://github.com/bitbaum/accountkit/pull/95
Full Changelog: https://github.com/bitbaum/accountkit/compare/v0.29.0...v0.30.0
Release notes
What's Changed
* feat(oidc): the shared sign-in and OrangeCat are told the page's language (ui_locales) by @catomean in https://github.com/bitbaum/accountkit/pull/90 * feat(menu): AccountMenu shows what waits in another account by @catomean in https://github.com/bitbaum/accountkit/pull/91
Full Changelog: https://github.com/bitbaum/accountkit/compare/v0.28.0...v0.29.0
Release notes
What's Changed
* feat(menu): AccountMenu switches accounts by @catomean in https://github.com/bitbaum/accountkit/pull/89
Full Changelog: https://github.com/bitbaum/accountkit/compare/v0.27.1...v0.28.0
Release notes
What's Changed
* chore(deps): raise shared package floors to published versions by @catomean in https://github.com/bitbaum/accountkit/pull/80 * chore(deps): raise shared package floors to published versions by @catomean in https://github.com/bitbaum/accountkit/pull/81 * chore(deps): raise shared package floors to published versions by @catomean in https://github.com/bitbaum/accountkit/pull/82 * chore(deps): raise shared package floors to published versions by @catomean in https://github.com/bitbaum/accountkit/pull/83 * docs(agents): the org rules block, generated from bitbaum/fleet by @catomean in https://github.com/bitbaum/accountkit/pull/84 * chore(deps-dev): bump the dev group with 6 updates by @dependabot[bot] in https://github.com/bitbaum/accountkit/pull/85 * chore(deps): raise shared package floors to published versions by @catomean in https://github.com/bitbaum/accountkit/pull/86 * chore(deps): one @bitbaum/* glob in minimumReleaseAgeExclude by @catomean in https://github.com/bitbaum/accountkit/pull/87 * fix(peer): accept @bitbaum/mail-kit 0.3 and 0.4 as the optional mail peer by @catomean in https://github.com/bitbaum/accountkit/pull/88
Full Changelog: https://github.com/bitbaum/accountkit/compare/v0.27.0...v0.27.1
Release notes
What's Changed
* feat(screens): a product's own code to sign in, and a claim form (#67) by @catomean in https://github.com/bitbaum/accountkit/pull/79
Full Changelog: https://github.com/bitbaum/accountkit/compare/v0.26.1...v0.27.0
Recent source changes
Repository activity can include unreleased work; it is not a list of deployed changes.
- release v0.30.0
- feat(menu): rows shown only below 768px (shown: "narrow") (#95)
- chore(deps): raise shared package floors to published versions (#94)
- fix(auth): OrangeCat first among the "Continue with …" buttons (#93)
- feat(menu): AccountControl, a panel that stays on screen, remote session read (#92)
- release v0.29.0
- feat(menu): AccountMenu shows what waits in another account (#91)
- feat(oidc): the shared sign-in and OrangeCat are told the page's language (ui_locales) (#90)
Where it is declared
Linked products declare this package in their manifests. A declaration alone does not verify every feature, version or deployed integration.
Sources and verification
Install commands and declared consumers come from Fleet’s generated registry. Documentation and release notes come from the package repository. The catalogue does not certify production journey coverage.
Documentation from source commit d40b44dbcee5 · 2026-11-13. Source documentation can include work beyond the registry release.



