diff --git a/packages/ra-supabase-core/src/authProvider.ts b/packages/ra-supabase-core/src/authProvider.ts index bcaef4f..d08622a 100644 --- a/packages/ra-supabase-core/src/authProvider.ts +++ b/packages/ra-supabase-core/src/authProvider.ts @@ -173,10 +173,10 @@ export const supabaseAuthProvider = ( const { data, error } = await client.auth.getUser(); if (error) { - throw error; + return; } if (data.user == null) { - return undefined; + return; } if (typeof getPermissions === 'function') {