mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 23:52:05 -05:00
9 lines
276 B
TypeScript
9 lines
276 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()],
|
|
});
|