mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
14 lines
414 B
TypeScript
14 lines
414 B
TypeScript
import { twoFactor } from 'better-auth/plugins';
|
|
import { createAuthClient } from 'better-auth/react';
|
|
|
|
import { passkeyClientPlugin } from './auth/passkey-plugin/client';
|
|
|
|
// make sure to import from better-auth/react
|
|
|
|
export const authClient = createAuthClient({
|
|
baseURL: 'http://localhost:3000',
|
|
plugins: [twoFactor(), passkeyClientPlugin()],
|
|
});
|
|
|
|
export const { signIn, signOut, useSession } = authClient;
|