mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 11:57:08 +01:00
* 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>
8 lines
293 B
TypeScript
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() });
|