Closed MrSkinny closed 6 years ago
@benjaminEwhite @oampo Noticed in the lesson it says you'll need to create .env file for the JWT_SECRET etc. but I'm not seeing how this will be read. Don't you need the dot-env package or similar?
.env
JWT_SECRET
dot-env
Yep, it's read using dotenv:
dotenv
https://github.com/Thinkful-Ed/node-jwt-auth/blob/master/package.json#L16 https://github.com/Thinkful-Ed/node-jwt-auth/blob/master/server.js#L1
Ah I was working from @cklanac's fork to review a frontend add for fulltime, which for some reason has lost the dot-env require ...
@benjaminEwhite @oampo Noticed in the lesson it says you'll need to create
.env
file for theJWT_SECRET
etc. but I'm not seeing how this will be read. Don't you need thedot-env
package or similar?