Auth API reference

Auth API · Consumer-Discovery

get/{app_slug}/.well-known/jwks.json

Per-app JWKS

Returns the JSON Web Key Set used to sign EndUser and M2M access tokens for this app. Cached at the edge for 1 hour; verifiers should re-fetch on `kid` miss.

Path parameters

app_slug*string

Slug of the app.

Response · 200

keys*array

The public signing keys of the app (RFC 7517 JWK Set). Verify an Auth-issued JWT with the key whose `kid` matches its header.

Example

Request

GET https://api.auth.productcraft.co/{app_slug}/.well-known/jwks.json

Response

{
  "keys": [
    {
      "kid": "rs256-moc6k64k-b2214480",
      "kty": "RSA",
      "alg": "RS256",
      "use": "sig",
      "n": "string",
      "e": "AQAB"
    }
  ]
}