Create JSON Web token

Generates JSON Web Tokens (JWT) from the provided payload and the private key with the selected encryption algorithm.

inputs

payload – link the claims in JSON format, e.g.


{​​​​​

  "sub": "1234567890",

  "name": "John Doe",

  "admin": true

}​​​​​
  • Required: yes

private key – link with the private key value for RSA algorithms or secret for HMAC ones.

Note: private key must begin with —–BEGIN PRIVATE KEY—– and ends with —–END PRIVATE KEY—–

  • Required: yes

algo – link or directly specify encryption algorithm. Currently, supported algorithms are HS256, HS384, HS512, RS256, RS384, and RS512.

  • Required: yes

outputs:

jwt – generated JWT

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *