/{app_slug}/.well-known/jwks.jsonPer-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*stringSlug of the app.
Response · 200
keys*arrayThe 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.jsonimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const jwks = await auth.consumer("my-app").wellKnown.jwks();auth.consumer(…).wellKnown.jwks(options?): Auth.Jwks
Response
{
"keys": [
{
"kid": "rs256-moc6k64k-b2214480",
"kty": "RSA",
"alg": "RS256",
"use": "sig",
"n": "string",
"e": "AQAB"
}
]
}