fix(auth): forçar envio da options.redirectTo no signInWithOAuth para agradar validação do Supabase GoTrue

This commit is contained in:
2026-08-17 19:56:48 +00:00
parent af40f707bb
commit f28e410aad
+6 -3
View File
@@ -340,12 +340,15 @@ export function AuthProvider({ children }: { children: ReactNode }) {
provider: 'keycloak', provider: 'keycloak',
options: { options: {
scopes: 'openid email profile', scopes: 'openid email profile',
redirectTo: window.location.origin + '/'
} }
}); });
if (error) {
return { error }; return { error };
} catch (error) { }
logger.error('Erro crítico no login SSO:', error); return { error: null };
return { error }; } catch (err: any) {
return { error: err };
} }
}; };