mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-11 04:19:31 +00:00
9 lines
297 B
TypeScript
9 lines
297 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
import { passkeyClient, twoFactorClient } from "better-auth/client/plugins";
|
|
|
|
export const authClient = createAuthClient({
|
|
plugins: [passkeyClient(), twoFactorClient()],
|
|
});
|
|
|
|
export const { signIn, signUp, signOut, useSession } = authClient;
|