#️⃣Encode JWT

The Encode JWT node is used to create a JSON Web Token (JWT) from a set of user-specified claims and a secret key. JWT is a standard for creating compact and self-contained tokens that can securely transmit information between parties.

Options

Type

This is the algorithm that is used to sign the JWT.

Secret

This is the secret key that is used to sign the JWT.

Issuer

This is the issuer of the JWT. It is used to specify the entity that issues the JWT.

Audience

This is the intended audience for the JWT. It can be a string or a list of strings, and it is used to specify the recipients of the JWT.

Expires

This is the expiration time of the JWT. The encoded JWT will contain an 'exp' claim that holds the expiration time.

Data

This is a dictionary containing the claims or the data that needs to be encoded in the JWT. It could contain information such as user id, account, subscription, expiration date, etc.

Output

Returns the encoded JWT.

Last updated