# loadJwks

loadJwks in @provenanceauth/rails/checkout, Rails. A cached JWKS getter for `<baseUrl>/.well-known/jwks.json`.

## Signature

```ts
loadJwks(baseUrl: string, opts?: { maxAgeMs?: number; fetch?: typeof fetch }): { get: (o?: { refresh?: boolean }) => Promise<Jwks> }
```

## Parameters

- `baseUrl` (string)
- `opts` ({ maxAgeMs?: number; fetch?: typeof fetch }, optional)

## Returns

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

Runs locally, with no request to the API.
