logs route behind protected route and menu

This commit is contained in:
2026-03-16 20:59:05 -05:00
parent 5db2a7fe75
commit 2846b9cb0d
27 changed files with 1898 additions and 226 deletions

View File

@@ -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;