Skip to content
AuthKit

JWT Templates

How JWT Templates works in Paycux, what it is for, and the smallest setup that gets it running.

Introduction

JWT Templates is part of the Paycux platform. This page explains what it does, when to reach for it, and the smallest working setup you can ship.

Everything below applies to both environments. Build and test in staging, then promote the same configuration to production without changing your code — only the API key and client ID differ.

Create a JWT template

Access tokens are JWTs signed with a rotating key. Verify them against the JWKS endpoint for your client rather than a pinned public key, so rotation never causes an outage.

1https://api.paycux.com/sso/jwks/client_01M4KXD1PZXFWGWE9ZKPCQRAQ

Cache the key set and re-fetch on an unknown key ID. Reject any token whose issuer, audience or expiry does not match what you expect.

Example usage

Example usage is handled by JWT Templates rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.

Custom attributes

Paycux normalizes incoming attributes into a fixed profile shape, so your application reads the same fields no matter which provider the user came from.

Paycux fieldTypical source
emailNameID, email, or mail
first_namegivenName or first_name
last_namesurname, sn, or last_name
idp_idThe provider's stable user identifier

Anything the provider sends beyond these fields is kept verbatim under raw_attributes, so you can map custom claims without waiting on us.

Example

Example is handled by JWT Templates rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.

Priority rules

Priority rules is handled by JWT Templates rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.

Syntax

Syntax is handled by JWT Templates rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.

Basic Variable Interpolation

Basic Variable Interpolation is handled by JWT Templates rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.