retrieveJsonWebKeySet method

Future<ClientResponse<JWKSResponse, void>> retrieveJsonWebKeySet()

Returns public keys used by FusionAuth to cryptographically verify JWTs using the JSON Web Key format.

@returns {Promise<ClientResponse

Implementation

Future<ClientResponse<JWKSResponse, void>> retrieveJsonWebKeySet() {
  return _startAnonymous<JWKSResponse, void>()
      .withUri('/.well-known/jwks.json')
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => JWKSResponse.fromJson(d)))
      .go();
}