Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
8 lines
287 B
TypeScript
8 lines
287 B
TypeScript
import { createAuthClient } from 'better-auth/react';
|
|
|
|
export const authClient: ReturnType<typeof createAuthClient> = createAuthClient({
|
|
baseURL: process.env['NEXT_PUBLIC_GATEWAY_URL'] ?? 'http://localhost:4000',
|
|
});
|
|
|
|
export const { useSession, signIn, signUp, signOut } = authClient;
|