Token Generator
Overview
The Token Generator node handles JWT creation and verification, OTP code generation, UUID creation, and reference number generation. It supports multiple JWT algorithms (HS256, RS256) and configurable token expiration.
Category
Crypto — crypto/tokenGenerator
Operations
| Operation | Description |
|---|---|
| jwt_create | Create a signed JWT with custom claims |
| jwt_verify | Verify a JWT signature and expiration |
| jwt_decode | Decode a JWT without verification |
| code_create | Generate an OTP code (numeric, alphanumeric, hex) |
| code_verify | Verify an OTP code |
| uuid | Generate a UUID v4 |
| reference | Generate a human-readable reference number |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| operation | String | jwt_create | Which operation to perform |
| secret | String | — | HMAC secret for HS256 JWT signing |
| algorithm | String | HS256 | JWT algorithm: HS256, HS384, HS512, RS256 |
| expiresIn | Number | 3600 | Token expiration in seconds |
| issuer | String | vantage | JWT issuer claim |
| codeType | String | numeric | OTP format: numeric, alphanumeric, hex, uuid |
| codeLength | Number | 6 | OTP code length |
Inputs & Outputs
- input1 — Upstream data (claims for JWT, context for codes)
- output1 — Created / verified / decoded result
- output2 — Verification failed (expired, invalid, mismatch)