Merge pull request #6260 from backstage/freben/clear-signin-on-fail

Clear the previously selected sign-in provider on failure
This commit is contained in:
Fredrik Adelöw
2021-06-29 16:54:19 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
@@ -143,6 +143,7 @@ export const useSignInProviders = (
if (didCancel) {
return;
}
localStorage.removeItem(PROVIDER_STORAGE_KEY);
errorApi.post(error);
setLoading(false);
});