Files
causius/lib/auth-client.ts
CatoandClaude 476a157cd8 feat(accounts): Causius has its own accounts; OrangeCat is one way in, not the only one (#23)
Email and password, a sign-in link, passkeys, two-step codes and (where
configured) the shared sign-in and OrangeCat, all from @bitbaum/accountkit/auth.
Matters made while OrangeCat was the only way in are re-keyed to the account the
same person signs in with. Live check and provisioning updated.


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

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

8 lines
293 B
TypeScript

"use client";
import { authClientPlugins } from "@bitbaum/accountkit/auth/client";
import { createAuthClient } from "better-auth/react";
/** The browser half of accounts. Talks only to this origin (/api/auth). */
export const authClient = createAuthClient({ plugins: authClientPlugins() });