Environment variable 'jwt_secret_key' is not defined
cichy opened this issue · comments
How to define jwt never done this before and I'm getting error =>
Error: Environment variable 'jwt_secret_key' is not defined
As you have closed this issue, I am going to assume you have figured it out.
For those that might want more information, in order to verify a user's 'token' we have to compare it with a secret key that is stored on the server.
For the best practice and security reasons the key is not stored within our code. Instead we set it as a node environment variable.
As a result you will need to define this variable before you attempt to run the app. You will also need to ensure you have defined upon deployment.
For more information, please see our documentation: Link