Clear the previously selected sign-in provider on failure

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-06-29 13:45:37 +02:00
parent d9e0f28531
commit e8c65b0682
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Clear the previously selected sign-in provider on failure
@@ -143,6 +143,7 @@ export const useSignInProviders = (
if (didCancel) {
return;
}
localStorage.removeItem(PROVIDER_STORAGE_KEY);
errorApi.post(error);
setLoading(false);
});