mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-30 10:56:31 -05: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;
|