# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alphi.dev/nodes/encode-jwt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
