Error: throw new TypeError('JwtStrategy requires a secret or key');
jwt_secret 을 읽지 못해서 발생하는 에러.
.env 파일 확인
jwt_secret 변수 확인
.env 파일 위치가 env.js 에서 읽으려는 위치와 일치하는지 폴더 구조 확인
// 3번째 방법으로 해결됐다.
'TIL > Node.js' 카테고리의 다른 글
heroku error: Your account has reached its concurrent build limit (0) | 2020.03.10 |
---|---|
TypeError: Cannot read property 'forEach' of undefined (0) | 2020.03.10 |
TIL D-09 throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn)) (0) | 2020.01.14 |
Nodejs 에러 | cannot read property 'expires' of undefined (0) | 2019.12.31 |
Nodejs 에러 | ERR_INVALID_CHAR (1) | 2019.12.31 |
댓글