fix: auth for invite
This commit is contained in:
@@ -9,7 +9,6 @@ const getSupabase = (config) => {
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
supabaseConfig: {
|
supabaseConfig: {
|
||||||
bucketPath: 'https://koxqonvbkeakwvmdegcf.supabase.in/storage/v1/object/sign/',
|
|
||||||
url: PUBLIC_SUPABASE_URL || '',
|
url: PUBLIC_SUPABASE_URL || '',
|
||||||
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
|
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -265,10 +265,11 @@
|
|||||||
if (event === 'SIGNED_IN' || event === 'INITIAL_SESSION') {
|
if (event === 'SIGNED_IN' || event === 'INITIAL_SESSION') {
|
||||||
$user.fetchingUser = true;
|
$user.fetchingUser = true;
|
||||||
getProfile();
|
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) {
|
if (data.isOrgSite) {
|
||||||
|
|||||||
Reference in New Issue
Block a user