| Description | 
 | 
| Syntax | JWT_ENCODE( | 
| Output | text | 
Variables
- algorithm: The hashing algorithm to use (ex: HS256, HS384, HS512, and RS256, RS384, RS512).
- key: The secret key or private key for signing the token.
- payload_json_text: The JSON-formatted payload to include in the token.
- [header_json_text]: (Optional) A JSON-formatted header override.
Example
JWT_ENCODE('HS256', 'abcdefg', `payload`)
| Payload | JWT_ENCODE | 
| {"my":"payload"} | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJteSI6InBheWxvYWQifQ.Pyk2wIR5kCoXVdjQOJOasApbfJEL4PyipH2aZsF523Q | 
