UNPKG

oidc-provider

Version:

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

8 lines (6 loc) 226 B
import instance from '../helpers/weak_cache.js'; export default function renderJWKS(ctx) { const { keys } = instance(ctx.oidc.provider).jwks; ctx.body = { keys }; ctx.type = 'application/jwk-set+json; charset=utf-8'; }