SDK reference · Rails
loadJwks
loadJwks in @provenanceauth/rails/checkout, Rails. A cached JWKS getter for <baseUrl>/.well-known/jwks.json.
Signature
loadJwks(baseUrl: string, opts?: { maxAgeMs?: number; fetch?: typeof fetch }): { get: (o?: { refresh?: boolean }) => Promise<Jwks> }Parameters
baseUrlstringRequiredopts{ maxAgeMs?: number; fetch?: typeof fetch }
Returns
{ get: (o?: { refresh?: boolean }) => Promise<Jwks> }
HTTP operation
Runs locally, with no request to the API.