diff --git a/src/controller/tokens/authorizationCode.ts b/src/controller/tokens/authorizationCode.ts index 6f4bbd5..1b31d10 100644 --- a/src/controller/tokens/authorizationCode.ts +++ b/src/controller/tokens/authorizationCode.ts @@ -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');