Input
- v1
| Field | Description | Type | Required |
|---|---|---|---|
algorithm | Signing algorithm. Only RS256 is supported. | string | Yes |
claims | Claims to include in the JWT payload, such as iss, scope, and aud. iat and exp are required numbers with exp after iat, and accept now or now+<N>s|m|h tokens. | object | Yes |
privateKey | PEM-encoded private key used to sign the token. | string | Yes |
Output
- v1
| Field | Description | Type | Required |
|---|---|---|---|
expiresIn | Token lifetime in seconds. | number | Yes |
publicKeyFingerprint | Fingerprint of the public key matching the signing key. | string | Yes |
token | The signed JWT. | string | Yes |