Merge pull request #8035 from zfalen-deloitte/bugfix/duplicate-backstage-token
Bugfix/duplicate backstage token
This commit is contained in:
@@ -49,7 +49,9 @@ const Component: ProviderComponent = ({ config, onResult }) => {
|
||||
userId: identity!.id,
|
||||
profile: profile!,
|
||||
getIdToken: () => {
|
||||
return authApi.getBackstageIdentity().then(i => i!.idToken);
|
||||
return authApi
|
||||
.getBackstageIdentity()
|
||||
.then(i => i!.token ?? i!.idToken);
|
||||
},
|
||||
signOut: async () => {
|
||||
await authApi.signOut();
|
||||
|
||||
Reference in New Issue
Block a user