### **What It Is**
A simply great integration to generate and verify web tokens within your bot. JSON Web Token (JWT) is a URL-safe means of representing claims to be transferred between two parties. It is commonly used for authentication and authorization purposes in web applications.
### **How It Works**
JWTs consist of three parts: a header, a payload, and a signature. The header specifies the algorithm used to sign the token, the payload contains the information about the user, and the signature is used to verify the integrity of the token.
#### **Integration Features**
This integration has three Actions:
`generateToken:` Generates a JSON Web Token with your data and secret key. You may set an optional Expiration Date.
`sendToken:` Sends a token to a specified URL address.
`verifyToken:` Verifies a token using the secret key. This Action returns a true/false variable named isVerified and the data.
This integration has one Event:
`JWT Event:` A token and conversation Id can be sent to the Webhook URL provided on the configuration page. These webhooks will be received in the JWT Event where you can use the verifyToken Action to verify its authitencity.
#### **Botpress Setup**
1. Click `Install` at the top right and select your bot.
2. Follow the popup instructions to configure your integration.
3. Enable the integration and save your settings.