UNPKG

@strongnguyen/oidc-provider

Version:

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

9 lines (6 loc) 234 B
const instance = require('../helpers/weak_cache'); module.exports = function renderJWKS(ctx, next) { ctx.body = instance(ctx.oidc.provider).jwksResponse; ctx.type = 'application/jwk-set+json; charset=utf-8'; return next(); };