From 0fd777ccbdab2e8de8dcc02c134e01390bbc0d0a Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Sun, 26 Oct 2025 09:37:08 -0500 Subject: [PATCH] refactor(frontend): tempt to stop the popup when redrected or coming to the page with no auth --- frontend/src/lib/authClient.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/authClient.ts b/frontend/src/lib/authClient.ts index d88af43..fe01e29 100644 --- a/frontend/src/lib/authClient.ts +++ b/frontend/src/lib/authClient.ts @@ -113,6 +113,10 @@ export async function checkUserAccess({ export const authClient = createAuthClient({ baseURL: `${window.location.origin}/lst/api/auth`, plugins: [usernameClient()], + options: { + autoPopup: false, + requireAuth: false, + }, callbacks: { callbacks: { onUpdate: (res: any) => { @@ -121,7 +125,7 @@ export const authClient = createAuthClient({ useAuth.getState().setSession(res?.data ?? null); }, onSignIn: (res: any) => { - console.log("Setting session to ", res?.data); + //console.log("Setting session to ", res?.data); useAuth.getState().setSession(res?.data ?? null); }, onSignOut: () => {