Merge pull request #3720 from fidelcoria/custom-github-auth

chore(auth): customizable github auth storage key
This commit is contained in:
Ben Lambert
2020-12-16 08:43:02 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-api': patch
---
GitHub Auth Api uses provider.id to build storage key name.
@@ -84,7 +84,7 @@ class GithubAuth implements OAuthApi, SessionApi {
const authSessionStore = new AuthSessionStore<GithubSession>({
manager: sessionManager,
storageKey: 'githubSession',
storageKey: `${provider.id}Session`,
sessionScopes: (session: GithubSession) => session.providerInfo.scopes,
});