fix: auth for invite

This commit is contained in:
Rotimi Best
2024-09-17 13:32:51 +01:00
parent 6bfae6ff13
commit 79839fca42
2 changed files with 4 additions and 4 deletions
-1
View File
@@ -9,7 +9,6 @@ const getSupabase = (config) => {
config = {
supabaseConfig: {
bucketPath: 'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
url: PUBLIC_SUPABASE_URL || '',
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
}
+4 -3
View File
@@ -265,10 +265,11 @@
if (event === 'SIGNED_IN' || event === 'INITIAL_SESSION') {
$user.fetchingUser = true;
getProfile();
} else if (!['TOKEN_REFRESHED'].includes(event)) {
console.log('not logged in, go to login');
return goto('/login');
}
// else if (!['TOKEN_REFRESHED'].includes(event)) {
// console.log('not logged in, go to login');
// return goto('/login');
// }
});
if (data.isOrgSite) {