getJSONWebKeySet
const url = 'https://gymgym.club/api/auth/jwks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gymgym.club/api/auth/jwks \ --header 'Authorization: Bearer <token>'Get the JSON Web Key Set
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”JSON Web Key Set retrieved successfully
object
Array of public JSON Web Keys
object
Key ID uniquely identifying the key, corresponds to the ‘id’ from the stored Jwk
Key type (e.g., ‘RSA’, ‘EC’, ‘OKP’)
Algorithm intended for use with the key (e.g., ‘EdDSA’, ‘RS256’)
Intended use of the public key (e.g., ‘sig’ for signature)
Modulus for RSA keys (base64url-encoded)
Exponent for RSA keys (base64url-encoded)
Curve name for elliptic curve keys (e.g., ‘Ed25519’, ‘P-256’)
X coordinate for elliptic curve keys (base64url-encoded)
Y coordinate for elliptic curve keys (base64url-encoded)
Example
{ "keys": [ { "use": "sig" } ]}Bad Request. Usually due to missing parameters, or invalid parameters.
object
Examplegenerated
{ "message": "example"}Unauthorized. Due to missing or invalid authentication.
object
Examplegenerated
{ "message": "example"}Forbidden. You do not have permission to access this resource or to perform this action.
object
Examplegenerated
{ "message": "example"}Not Found. The requested resource was not found.
object
Examplegenerated
{ "message": "example"}Too Many Requests. You have exceeded the rate limit. Try again later.
object
Examplegenerated
{ "message": "example"}Internal Server Error. This is a problem with the server that you cannot fix.
object
Examplegenerated
{ "message": "example"}