Login sequence and inventory/protocol storage groundwork
This commit is contained in:
7
lib/auth-client.ts
Normal file
7
lib/auth-client.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createAuthClient } from 'better-auth/react';
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: `${window.location.origin}/api/auth`,
|
||||
});
|
||||
|
||||
export const { signIn, signOut, useSession } = authClient;
|
||||
Reference in New Issue
Block a user