We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
id_token
1 parent 11767ca commit ded9373Copy full SHA for ded9373
lib/context.js
@@ -49,8 +49,9 @@ async function refresh({ tokenEndpointParams } = {}) {
49
// Update the session
50
const session = req[config.session.name];
51
Object.assign(session, {
52
- id_token: newTokenSet.id_token,
53
access_token: newTokenSet.access_token,
+ // If no new ID token assume the current ID token is valid.
54
+ id_token: newTokenSet.id_token || oldTokenSet.id_token,
55
// If no new refresh token assume the current refresh token is valid.
56
refresh_token: newTokenSet.refresh_token || oldTokenSet.refresh_token,
57
token_type: newTokenSet.token_type,
0 commit comments