We periodically rotate the key that signs access tokens and ID tokens from the TrueLayer auth server. This article explains what changes, how to check whether you're affected, and how to integrate so future rotations need no action.
Timeline
| Date | What happens |
|---|---|
| 02/12/2026 | Our JWKS endpoint lists a new public key next to the current one. |
| 04/12/2026 | New access tokens and ID tokens are signed with the new key and carry its kid. |
What's changing
- Our JWKS endpoint (
https://<auth-host>/.well-known/openid-configuration/jwks) will list a new public key. - New access tokens and ID tokens will be signed with the new key. Their header will carry the new
kid. - Tokens issued before the switch remain valid until they expire (at most 1 hour).
- Refresh tokens are not affected. You do not need to re-authenticate users or re-request consent.
- Token format, claims, endpoints, scopes and lifetimes are not changing.
Do I need to do anything?
You do not need to do anything if either of these is true:
- You don't validate the signature of our tokens yourself. You get a token, send it to TrueLayer APIs and refresh it when needed. This covers most integrations.
- You validate tokens with a standard OAuth/OIDC/JWT library pointed at our discovery or JWKS URL. These libraries pick the key by
kidand re-fetch the JWKS when they see an unknown key.
You may be affected if any of these is true:
- You stored our public key or certificate in your code, config or a secrets store, instead of fetching it from the JWKS URL.
- You hardcoded or allow-listed a specific
kid, or you assume the JWKS contains only one key. - You cache the JWKS indefinitely, or for longer than 24 hours, and don't re-fetch it when you see an unknown
kid. - You check the certificate thumbprint (
x5t) against a fixed value.
Quick check
- Search your codebase and config for our auth server's public key, certificate or
kidvalue. If you find none and you load keys from the JWKS URL, you are fine. - From 02/12/2026, you can fetch the JWKS URL and confirm it lists two keys. Make sure your validation still passes when a token carries the new
kid. Optional: we can issue test tokens signed with the new key in sandbox from 02/12/2026.
If you are affected
Before 04/12/2026, switch to loading signing keys from the JWKS URL, as described below. If you can't do that in time, add the new public key from the JWKS alongside the current one as a stopgap.
How to integrate so future rotations need no action
We will rotate signing keys again in future. If your integration follows these steps, a rotation needs no work from you:
-
Find keys through discovery. Read
jwks_urifromhttps://<auth-host>/.well-known/openid-configuration. Don't hardcode the key, the certificate or the JWKS contents. -
Pick the key by
kid. Readkidfrom the token header and use the matching key in the JWKS. Expect the JWKS to hold more than one key. -
Cache sensibly and re-fetch on an unknown
kid. Cache the JWKS for no longer than itsCache-Controlheader allows (currently 24h). If a token carries akidyou don't have, fetch the JWKS again once before rejecting the token. Rate-limit these re-fetches (for example, at most once every 5 minutes). -
Don't pin anything. Don't allow-list
kidorx5tvalues, and don't pin our certificate. -
Validate the rest of the token too. Accept only
RS256, and checkiss,audandexp.
Most maintained libraries do steps 1 to 3 for you when you give them our issuer or JWKS URL:
| Language | Library |
|---|---|
| .NET |
Microsoft.AspNetCore.Authentication.JwtBearer with Authority set to our issuer |
| Node.js |
jose with createRemoteJWKSet
|
| Java | Nimbus JOSE + JWT with RemoteJWKSet / JWKSourceBuilder
|
| Python |
PyJWT with PyJWKClient
|
| Go | github.com/MicahParks/keyfunc |
If you only pass our tokens to TrueLayer APIs and don't inspect them, you don't need to validate them at all. Treat them as opaque strings.
Questions
If you have any questions, please raise a support ticket with our Client Operations team via this contact form
Comments
0 comments
Article is closed for comments.