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

baseUrlstringRequired
opts{ maxAgeMs?: number; fetch?: typeof fetch }

Returns

{ get: (o?: { refresh?: boolean }) => Promise<Jwks> }

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.