From 5f2037101bb46c16b89e927ced6709f378ecb85d Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Thu, 14 Dec 2023 22:19:55 +0300 Subject: [PATCH] debug: remove redirect if no token found --- apps/dashboard/src/routes/+layout.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dashboard/src/routes/+layout.svelte b/apps/dashboard/src/routes/+layout.svelte index 88a13489..55589ec9 100644 --- a/apps/dashboard/src/routes/+layout.svelte +++ b/apps/dashboard/src/routes/+layout.svelte @@ -222,10 +222,10 @@ handleResize(); - if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url?.pathname)) { - console.log('No auth token and is not a public route, redirect to login', path); - return goto('/login?redirect=/' + path); - } + // if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url?.pathname)) { + // console.log('No auth token and is not a public route, redirect to login', path); + // return goto('/login?redirect=/' + path); + // } const { data: authListener } = supabase.auth.onAuthStateChange((event, session) => { // Log key events