From aef42b66380c221413e343cae8bb80b93e752c8d Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Fri, 16 Sep 2022 17:30:29 +0300 Subject: [PATCH] oops --- src/controller/tokens/authorizationCode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');