UNPKG

oidc-provider

Version:

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

9 lines (6 loc) 229 B
import instance from '../helpers/weak_cache.js'; export default function renderJWKS(ctx, next) { ctx.body = instance(ctx.oidc.provider).jwksResponse; ctx.type = 'application/jwk-set+json; charset=utf-8'; return next(); }