A simple Express.js API server that generates JWT tokens for HR integration.
- Install dependencies:
npm installnpm run devnpm startThe server will start on port 3000 by default (or the port specified in the PORT environment variable).
Generates a JWT token for HR integration.
Request Body:
{
"userId": "string (required)",
"email": "string (required)",
"firstName": "string (optional)",
"lastName": "string (optional)"
}Response:
{
"token": "jwt_token_string",
"expiresIn": 5184000
}Example Usage:
curl -X POST http://localhost:3000/hr-token \
-H "Content-Type: application/json" \
-d '{
"userId": "12345",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe"
}'Health check endpoint that returns server status.
Response:
{
"status": "OK",
"timestamp": "2023-01-01T00:00:00.000Z"
}PORT: Server port (default: 3000)
- Algorithm: RS256
- Expires: 2 months from creation
- Issuer: https://integration.app.paulsjob.ai
- Audience: paul-job
- Key ID: 20250528-f216