Files
heidi/lib/auth/client.ts
CatoandClaude Opus 5.5 2093dd401a feat(accounts): Heidi has its own accounts; OrangeCat is one way in, not the only one (#191)
* wip(accounts): Heidi on @bitbaum/accountkit/auth (accountkit pin pending)

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

* feat(accounts): Heidi has its own accounts; OrangeCat is one way in, not the only one

Email and password, passkeys and two-step codes from @bitbaum/accountkit/auth,
with the shared screens in Heidi's seven languages. People whose first way in
was OrangeCat keep their actor id, so no row moves. next-auth removed; the
session secret falls back to the existing AUTH_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 10:08:54 -07:00

8 lines
293 B
TypeScript

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