fix: auth for invite
This commit is contained in:
@@ -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 || ''
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user