debug: remove redirect if no token found
This commit is contained in:
@@ -222,10 +222,10 @@
|
|||||||
|
|
||||||
handleResize();
|
handleResize();
|
||||||
|
|
||||||
if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url?.pathname)) {
|
// if (!isSupabaseTokenInLocalStorage() && !isPublicRoute($page.url?.pathname)) {
|
||||||
console.log('No auth token and is not a public route, redirect to login', path);
|
// console.log('No auth token and is not a public route, redirect to login', path);
|
||||||
return goto('/login?redirect=/' + path);
|
// return goto('/login?redirect=/' + path);
|
||||||
}
|
// }
|
||||||
|
|
||||||
const { data: authListener } = supabase.auth.onAuthStateChange((event, session) => {
|
const { data: authListener } = supabase.auth.onAuthStateChange((event, session) => {
|
||||||
// Log key events
|
// Log key events
|
||||||
|
|||||||
Reference in New Issue
Block a user