Merge pull request #3720 from fidelcoria/custom-github-auth
chore(auth): customizable github auth storage key
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user