DEV Community

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

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.

rabiudev profile image

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..

sodiq123 profile image
Sodiq_dev Author

Alright, thank you