mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-24 08:01:56 -05:00
13 lines
329 B
TypeScript
13 lines
329 B
TypeScript
import { twoFactorClient } from "better-auth/client/plugins";
|
|
import { createAuthClient } from "better-auth/react";
|
|
|
|
export const { useSession, signIn, signOut, signUp, twoFactor } =
|
|
createAuthClient({
|
|
baseURL: "http://localhost:3000",
|
|
plugins: [
|
|
twoFactorClient({
|
|
twoFactorPage: "/auth/two-factor",
|
|
}),
|
|
],
|
|
});
|