mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import { twoFactorClient } from "better-auth/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",
|
|
}),
|
|
],
|
|
});
|