8 lines
213 B
TypeScript
8 lines
213 B
TypeScript
|
|
import { createAuthClient } from 'better-auth/react';
|
||
|
|
|
||
|
|
export const authClient = createAuthClient({
|
||
|
|
baseURL: `${window.location.origin}/api/auth`,
|
||
|
|
});
|
||
|
|
|
||
|
|
export const { signIn, signOut, useSession } = authClient;
|