DEV Community

Discussion on: Building a User Login System with Express js and Fauna

Collapse
tonitammi profile image
tonitammi • Edited on

if(data.username === 'BadRequest') return // ... should return null

If that and few other lines should return null, it's maybe a good idea to return null instead of undefined.

Collapse
rabiudev profile image
rabiu-dev

Great article Sodiq! But here's a suggestion, I think it'd be more secure and advisable to use Oauth2 for the Gmail service for nodemailer..

Collapse
sodiq123 profile image
Sodiq_dev Author

Alright, thank you