DEV Community

Nishat Tasnim Mithila
Nishat Tasnim Mithila

Posted on

Answer: Error: secretOrPrivateKey must have a value

It looks like your application can't read the environment variable properly.

I don't know which package you are using to load environment variables but the simplest way is using dotenv package.

After installing it with npm i dotenv, import it as early as possible in your application main file like…

Top comments (0)