2026-03-19 05:42:11 +00:00
|
|
|
import { createAuthClient } from 'better-auth/react';
|
|
|
|
|
|
|
|
|
|
export const authClient = createAuthClient({
|
|
|
|
|
baseURL: `${window.location.origin}/api/auth`,
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-19 19:59:01 -05:00
|
|
|
export const {
|
|
|
|
|
signIn,
|
|
|
|
|
signOut,
|
|
|
|
|
signUp,
|
|
|
|
|
useSession,
|
2026-04-10 01:38:25 -05:00
|
|
|
updateUser,
|
2026-04-02 14:29:56 -05:00
|
|
|
requestPasswordReset,
|
2026-03-19 19:59:01 -05:00
|
|
|
resetPassword,
|
|
|
|
|
sendVerificationEmail,
|
|
|
|
|
} = authClient;
|