This API allows you to generate tokens using the /token/create endpoint.
https://token-api-generator.onrender.com
POST /token/create
{
"name": "John Doe",
"age": 25
}
- expires: Specifies the expiration time of the token. It can be defined in human-readable form (e.g., '8h') or in milliseconds (e.g., 1000 * 60 * 60).
- Example: '8h' or 1000 * 60 * 60
- secret: The secret key used for token generation.
- Example: '@teste'
curl -X POST "https://token-api-generator.onrender.com/token/create?expires=8h&secret=@teste" \
-H "Content-Type: application/json" \
-d '{"name": "John Doe", "age": 25}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}