From a0ac5c06742bda08eb105fc2b08d4da6407b9b11 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 21 Apr 2026 19:40:00 +0000 Subject: [PATCH] Add debug logs around authentication Trying to troubleshoot our redirection logic after signin --- ts/store/session.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/store/session.ts b/ts/store/session.ts index 5be4bba9..c72af0a1 100644 --- a/ts/store/session.ts +++ b/ts/store/session.ts @@ -38,6 +38,7 @@ export const useSessionStore = defineStore("session", () => { try { const data: Session = await apiClient.JSONGet("/api/session"); isAuthenticated.value = true; + console.log("set authenticated", isAuthenticated.value); impersonating.value = data.impersonating || null; notification_counts.value = data.notification_counts; organization.value = data.organization; @@ -76,6 +77,7 @@ export const useSessionStore = defineStore("session", () => { } async function signout(): Promise { isAuthenticated.value = false; + console.log("set authenticated", isAuthenticated.value); apiClient.JSONPost("/api/signout", {}); } return {