Merge pull request #7321 from ryan-hanchett/fix/update-oauth-refresh-token

Fix oauth refresh logic to set new refresh token
This commit is contained in:
Patrik Oldsberg
2021-09-26 15:02:32 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend': patch
---
Update OAuth refresh handler to pass updated refresh token to ensure cookie is updated with new value.
@@ -166,6 +166,7 @@ export class OAuth2AuthProvider implements OAuthHandlers {
accessToken: result.accessToken,
scope: result.params.scope,
expiresInSeconds: result.params.expires_in,
refreshToken: result.refreshToken,
},
profile,
};