Skip to content

A token does not verify

Your application rejects a token MockHub signed, with an error such as:

signature verification failed: no key found for kid

After Rotate keys, new tokens carry a new kid. An application that fetched the JWKS before the rotation does not know it. Restart the application or clear its key cache so it fetches the JWKS again. Tokens signed two rotations ago never verify again.

iss is the address the caller used: the platform address, or a custom domain. An application configured with one host rejects a token requested through the other. Request tokens through the host the application expects, or give iss= explicitly.

Try it signs with a preview key that no project’s JWKS lists. Request the token from the mock’s real address instead.

Each project signs with its own keys, a copy or an ephemeral environment included. Point the application at the JWKS of the project that issued the token.

Report a problem with this page