diff --git a/src/hooks/use-auth.ts b/src/hooks/use-auth.ts index f112c56d..4f2df260 100644 --- a/src/hooks/use-auth.ts +++ b/src/hooks/use-auth.ts @@ -61,6 +61,7 @@ const useAuth = () => { if (isSso) { auth.signinRedirect({ redirect_uri: getSignInRedirectUrl() }); } else { + auth.error = undefined; setIsSignedIn(true); setCurrentUserData(userData); }