When i want to add my Node app in Environment variables this error apears "FATAL ERROR: jwtPrivateKey is not Defined" , this is my error message but i set the ENV but not work how to fix this issue?

Environment variables error in node course section Authentication and Authorization

i was facing the same problem so to fix it use the below command in your cmd…

  • Open command line

  • setx vidly_jwtPrivateKey mySecureKey

(write the above line without ‘=’ sign)

after that close your text editor and re-open and start the application, your app should work properly.