jwt_create
Create HS256-signed JWT tokens for testing APIs, mocking authentication, and generating test tokens. Specify payload, secret, and expiration.
Instructions
[PRO — 3 trial uses left] Create a JWT token signed with HS256. Useful for testing APIs, mocking auth, and generating test tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | No | Secret key for HS256 signing (default: 'secret') | |
| payload | Yes | JSON string for the JWT payload (e.g. {"sub":"1234","name":"Test"}) | |
| expiresIn | No | Expiration in seconds from now (default: 3600) |