@@ -12,6 +12,7 @@ import epochTime from '../helpers/epoch_time.js';
1212import {
1313 InvalidToken , InsufficientScope , InvalidDpopProof , UseDpopNonce ,
1414} from '../helpers/errors.js' ;
15+ import getCtxAccountClaims from '../helpers/account_claims.js' ;
1516
1617const PARAM_LIST = new Set ( [
1718 'scope' ,
@@ -200,7 +201,7 @@ export default [
200201
201202 if ( client . userinfoSignedResponseAlg || client . userinfoEncryptedResponseAlg ) {
202203 const token = new ctx . oidc . provider . IdToken (
203- await ctx . oidc . account . claims ( 'userinfo' , scope , claims , rejected ) ,
204+ await getCtxAccountClaims ( ctx , 'userinfo' , scope , claims , rejected ) ,
204205 { ctx } ,
205206 ) ;
206207
@@ -215,7 +216,7 @@ export default [
215216 ctx . type = 'application/jwt; charset=utf-8' ;
216217 } else {
217218 const mask = new ctx . oidc . provider . Claims (
218- await ctx . oidc . account . claims ( 'userinfo' , scope , claims , rejected ) ,
219+ await getCtxAccountClaims ( ctx , 'userinfo' , scope , claims , rejected ) ,
219220 { ctx } ,
220221 ) ;
221222
0 commit comments