All checks were successful
Deploy to Server / deploy (push) Successful in 33s
17 lines
310 B
TypeScript
17 lines
310 B
TypeScript
import { createAuthClient } from 'better-auth/react';
|
|
|
|
export const authClient = createAuthClient({
|
|
baseURL: `${window.location.origin}/api/auth`,
|
|
});
|
|
|
|
export const {
|
|
signIn,
|
|
signOut,
|
|
signUp,
|
|
useSession,
|
|
updateUser,
|
|
requestPasswordReset,
|
|
resetPassword,
|
|
sendVerificationEmail,
|
|
} = authClient;
|