Fix guest/custom auth
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
---
|
||||
|
||||
Fixed a bug that could prevent auth from working when using the `guest` or `custom` auth providers.
|
||||
@@ -177,7 +177,10 @@ export const useSignInProviders = (
|
||||
};
|
||||
|
||||
const handleSignInStarted = () => {
|
||||
localStorage.setItem(PROVIDER_STORAGE_KEY, provider.config!.id);
|
||||
localStorage.setItem(
|
||||
PROVIDER_STORAGE_KEY,
|
||||
provider?.config?.id || provider.id,
|
||||
);
|
||||
};
|
||||
|
||||
const handleSignInFailure = () => {
|
||||
|
||||
Reference in New Issue
Block a user