LeoDelivery System Auth

Generate JWT token using HS256

LeoDelivery System Auth

AI-generated

Summary

Generates an HS256-signed JWT for each incoming item using the jwtSecretApi credential and the supplied expiration, role, subject, name, and userType parameters. The returned token can be used as a LeoDelivery system authentication JWT, typically in an Authorization Bearer header. The node signs tokens but does not verify them; all five parameters are required and default to SYSTEM-related values. The secret comes from the required jwtSecretApi credential, and the output mirrors the claims used in the signed payload.

Inputs

None.

Output shape

token, subject, name, roles, userType, expiresAt

The node returns one output item for each input item. Each item has a json object with the generated token and related claim values.

Links

Discussion