UNPKG

oidc-provider

Version:

OAuth 2.0 Authorization Server implementation for Node.js with OpenID Connect

8 lines (6 loc) 247 B
import Params from '../helpers/params.js'; export default function assembleParams(allowList, ctx, next) { const params = ctx.method === 'POST' ? ctx.oidc.body : ctx.query; ctx.oidc.params = new (Params(allowList))(params); return next(); }