add(jwksJSON:)

Adds a JWKS (JSON Web Key Set) to the collection by decoding a JSON string.

JWTKeyCollection.swift:79
@discardableResult func add(jwksJSON json: String) throws -> Self

Parameters

json

A JSON string representing a JWKS.

Returns

Self for chaining.

Throws

An error if the JSON string cannot be decoded into a JWKS instance.