9 Commits
Author SHA1 Message Date
Cato 68e1ffaea3 fix(auth): OrangeCat first among the "Continue with …" buttons (#93)
With OrangeCat and the shared sign-in both on, "Continue with Google or
GitHub" sat directly above "Continue with OrangeCat" and read as its
heading (BiasLens sign-in at 1920px, 2026-11-12). OidcButtons now lists
OrangeCat, the fleet's own account, first. Render test fails on the old
order; dist rebuilt.
2026-11-12 11:11:31 +01:00
CatoandClaude b732b55506 feat(screens): a product that owns the person's name keeps the panel out of it (#69)
Vita's profile edits the patient's name on `users`, the row every table and
every clinician reads. AccountPanel's Profile section edits auth_users.name,
so on one page a patient had two name fields writing two rows that drift.
`ownProfile` leaves that section out; the rest of the panel stays.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 21:57:08 +01:00
CatoandClaude b25e5858ca feat(auth): a product that must keep accounts can turn self-service deletion off (#65)
Vita, a clinic, keeps medical records for ten years under Swiss law: its
patients request erasure from a clinician (a tracked thread), and the portal
has no delete button. Adopting AccountKit's account panel would have given
them one, and /delete-user would have taken the sign-in away from records
the clinic must keep.

- accountDeletion: false (createAuthRuntime, createAuthInstance) turns
  better-auth's deleteUser off: /delete-user answers 404 and deletes nothing.
- AccountPanel takes `deletion`, the product's own way out (such as a link to
  its erasure request), shown in place of the delete control beside
  "Sign out".

Both have regression tests: the endpoint refuses with every row and the
session intact, and the panel renders the product's node, not the control.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 21:31:18 +01:00
CatoandClaude c259b5506e fix(screens): a button label never cuts a hyphenated word across lines (#60)
At 390px evig's sign-in card read "Stattdessen einen Anmeldelink per E- /
Mail schicken": a browser may break after any hyphen, and no CSS property
forbids it. Every button label on AccountKit's screens now keeps each
hyphenated word in a nowrap span (inline style, so it holds without the
stylesheet), in every language and in a product's own labels. Spaces still
wrap, and the accessible name is unchanged.

The browser check renders the sign-in card with every method on, in every
shipped language at 320 and 390px, lays each hyphenated word of each button
out in a Range and fails when it spans two lines. Without the fix it fails
on fr ("par e- / mail") and ru. chatkit's findBrokenWords exempts a break
beside a hyphen by design, so it cannot see this case.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 09:41:09 +01:00
Cato 44741a334e feat(auth)!: one password rule everywhere (non-empty, up to 128), no hint text (#33) 2026-10-28 02:04:27 +01:00
CatoandClaude 5dcc30d7c7 feat(auth): one password field at sign-up, with the eye inside it (#29)
0.7.2 asked for the password twice and put a full-width 'Show password'
bar between the fields and the button, which read as a third action. The
owner asked for sign-up without friction (2026-10-26). Seeing what you
typed is what the repeat field was for: the show/hide control is now an
eye inside the password field (two new class slots, inputWrap and
reveal, styled on --acct-* tokens, a 44px target), and sign-up has one
password field. Password reset keeps its repeat field, where a typo
locks the person out.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-26 21:38:22 +01:00
Cato 8be5afe442 feat(auth): confirm registration passwords and support visibility controls (#26) 2026-10-26 17:36:47 +01:00
CatoandClaude bd881cd851 feat(auth): sign up with an email and a password, nothing else (v0.7.0) (#23)
The sign-up screen asked for a display name, demanded a 12-character
password and drew an 'or with email' divider under nothing whenever a
product had no providers switched on. Owner, 2026-10-26: just let people
register.

- No display-name field; an account starts nameless (displayNameFor shows
  the address until the person picks a name on the account page).
- One password rule: at least 8 characters (MIN_PASSWORD_LENGTH, shared by
  the server, the form and every translation).
- The divider appears only under the buttons it separates.
- The link option reads 'Email me a link instead'.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-26 16:32:22 +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