UNPKG

@strongnguyen/oidc-provider

Version:

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

7 lines (6 loc) 220 B
module.exports = function getContextEnsureOidc({ OIDCContext }) { return async function contextEnsureOidc(ctx, next) { Object.defineProperty(ctx, 'oidc', { value: new OIDCContext(ctx) }); await next(); }; };