logs route behind protected route and menu
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { createAuthClient } from "better-auth/react"
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: "http://localhost:3000/lst/api/auth" // The base URL of your auth server
|
||||
})
|
||||
import { adminClient } from "better-auth/client/plugins";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
export const { useSession, signUp, signIn, signOut } = authClient
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: `${window.location.origin}/lst/api/auth`,
|
||||
plugins: [adminClient()],
|
||||
});
|
||||
|
||||
export const { useSession, signUp, signIn, signOut } = authClient;
|
||||
|
||||
Reference in New Issue
Block a user