This commit is contained in:
Evert Prants 2022-09-16 17:30:29 +03:00
parent fb126677e0
commit aef42b6638
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -116,7 +116,7 @@ export async function authorizationCode(
);
try {
respObj.id_token = await oauth2.model.jwt.issueIdToken(user, cleanScope, null, code.nonce);
respObj.id_token = await oauth2.model.jwt.issueIdToken(user, cleanScope, undefined, code.nonce);
} catch (err) {
oauth2.logger.error(err);
throw new ServerError('Failed to issue an ID token');