DefaultJsonWebKeySetLoader constructor
DefaultJsonWebKeySetLoader({
- Client? httpClient,
- Duration cacheExpiry = const Duration(minutes: 5),
Creates a DefaultJsonWebKeySetLoader
A custom httpClient
can be used for doing the http requests.
If the response includes valid "date" and "expires" headers, those are
used instead of cacheExpiry
.
Implementation
DefaultJsonWebKeySetLoader({
http.Client? httpClient,
Duration cacheExpiry = const Duration(minutes: 5),
}) : _httpClient = httpClient ?? http.Client(),
_cacheExpiry = cacheExpiry;