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',
options: {
scopes: 'openid email profile',
redirectTo: window.location.origin + '/'
}
});
if (error) {
return { error };
} catch (error) {
logger.error('Erro crítico no login SSO:', error);
return { error };
}
return { error: null };
} catch (err: any) {
return { error: err };
}
};