배워서 남주는 개발자 :)

에러해결

Error: secretOrPrivateKey must have a value 해결법

핏짜보이 2022. 4. 29. 13:50
반응형

원인 : dotenv 모듈 미설치 / 모듈 임포트 X 

 

관련 자료 

https://stackoverflow.com/questions/58673430/error-secretorprivatekey-must-have-a-value

 

Error: secretOrPrivateKey must have a value

I am using jwt to create token, but when i login via postman I get the error "Error: secretOrPrivateKey must have a value" from my console. I have attached my login code. Please anyone who can help...

stackoverflow.com

 

728x90