mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 12:19:59 +01:00
Vita answers sign-in from AccountKit since today's switch (loki accountkit-switch.yml). This moves the pages onto AccountKit's screens: SignInForm, SignUpForm and the recovery form in de/en/fr, AccountPanel on the profile. Password, passkey, a second factor; the email link and recovery with mail; OrangeCat and the bitbaum sign-in when their env is set. What stays Vita's: no delete button (medical records are kept ten years: accountDeletion: false, and the panel leads to the erasure request); the name on `users` (ownProfile); the per-account lockout, now a plugin on AccountKit's sign-in; a new person's users row, profile and welcome sequence; the role-aware landing. The runtime answers only with AUTH_RUNTIME=accountkit and is unavailable elsewhere, so it never writes accounts an import would refuse. NextAuth, the bridge and Vita's own registration, forgot-, reset- and change-password routes are gone; AccountKit is the only credential writer. Production has no Google client and no Google links, so nobody loses a way in. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>
11 lines
459 B
TypeScript
11 lines
459 B
TypeScript
"use client";
|
|
/**
|
|
* The browser client for AccountKit's screens (SignInForm, SignUpForm,
|
|
* PasswordRecoveryForm, AccountPanel). Pages that only read who is signed in
|
|
* keep `useSession` and `signOut` from next-auth/react (lib/auth/shared/compat.ts).
|
|
*/
|
|
import { createAuthClient } from "better-auth/react";
|
|
import { authClientPlugins } from "@bitbaum/accountkit/auth/client";
|
|
|
|
export const authClient = createAuthClient({ plugins: authClientPlugins() });
|