Scenario: to call an API from post-login script securely. The idea is to generate a JWT string from a JSON string and a secret, send to API using Axios. The API will decode the JWT string using the shared secret to obtain the JSON string.
Is there an available js/node package that can be used in a post-login action to sign a json string with a secret?