Merge pull request #20364 from kunickiaj/oauth-fix

auth-node: Refresh handler not returning persisted scope in response
This commit is contained in:
Patrik Oldsberg
2023-10-04 22:09:03 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
@@ -320,7 +320,9 @@ export function createOAuthRouteHandlers<TProfile>(
providerInfo: {
idToken: result.session.idToken,
accessToken: result.session.accessToken,
scope: result.session.scope,
scope: authenticator.shouldPersistScopes
? scope
: result.session.scope,
expiresInSeconds: result.session.expiresInSeconds,
},
};