Clear the previously selected sign-in provider on failure
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user