4 Commits
Author SHA1 Message Date
CatoandClaude 5108725c4c feat(auth): the shared sign-in's button names only the providers Morulia publishes (#64)
signInMethods reads <SIGNIN_ISSUER>/api/providers (cached per issuer,
refreshed at most once a minute, last good list kept) and returns the
names as signinProviders; signin is true only when one is listed. The
label is composed from them in all six languages, so an app never names
a provider that is not configured. The fallback label drops Apple and X,
which are paid.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 21:13:41 +01:00
CatoandClaude 8acc859843 feat(auth): confirming an address no longer blocks sign-in (#50)
Every bitbaum product needs people in and using it with as little friction as
possible. With mail configured, AccountKit used to refuse a password sign-in
until the address was confirmed, and a first-password claim gave no session
until the link was followed.

Now, by default, a sign-up is signed in at once and is mailed a confirmation
link. An unconfirmed account signs in, and a claim signs the person in and
mails the link. Following the link still sets emailVerified, which a product
reads to reserve powers (staff, payouts) for confirmed addresses.

A product that needs the wall opts in with emailConfirmation:
"before-sign-in" (server, Next runtime, and signInMethods' third argument).
It applies only with mail, as before.


Claude-Session: https://claude.ai/code/session_019MDtmuvj9Cecd7DR2Nbirb

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 06:32:57 +01:00
CatoandClaude Opus 5.5 43fb3110fb feat(auth): shared sign-in, sign-up and account screens (v0.4.0) (#6)
* feat(auth): shared sign-in, sign-up and account screens (auth/react, v0.4.0)

Logic in the package, words and look from the product: labels (English
default) and classes (acct-auth-* defaults on --acct-* variables).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

* feat(auth): fall back to AUTH_SECRET so a product moving off next-auth needs no new secret

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-15 09:35:31 -07:00
CatoandClaude Sonnet 5.5 f07353eee9 feat(auth): accounts for every product (v0.3.0) (#4)
* feat(auth): accounts for every product — better-auth runtime, schema, methods, limits

createAuthRuntime gives a Next.js product password, magic link, passkeys, 2FA,
the shared sign-in and OrangeCat from one call, with the same rules everywhere.
Tests drive sign-up, role refusal and sign-in against an in-memory Postgres.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

* feat(auth): onAccountCreated hook for products that re-key from an older id

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

* fix(auth): run onAccountCreated before the account is stored (after-hooks did not fire)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

* test(auth): an OIDC button starts a PKCE sign-in; bucket list matches the real endpoints

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-15 09:05:47 -07:00