DEV Community

Discussion on: Authentication in NodeJS With Express and Mongo - CodeLab #1

Collapse
 
alvarezskinner profile image
Andres Alvarez Skinner • Edited

Did you just do it in the repo? The blog entry is still showing the previous i believe. The thing is in signup you are using "randomString" whereas in login you are using "secret". The middleware is using "secret" so maybe making all those consistent, or even better moving it to a environment variable, would be better.

Apart from that, lovely blog entry! Thanks!

Thread Thread
 
dipakkr profile image
Deepak Kumar • Edited

Thanks @andres for feedback. I have just updated it in the blog post also.