DEV Community

Cover image for Plug n play authentication from scratch in JavaScript
Kauress
Kauress

Posted on • Edited on

4 1

Plug n play authentication from scratch in JavaScript

A few glimpses of my side project which is a plug-n-play authentication module built from ground up for developers (mainly). It's built with verbosity in mind so that junior devs can get in on the action.

Uses MongoDB, Express.js, Passport.js (social logins), EJS, SendGrid (mail) and node modules (bcrypt, jwt etc)

So far the functionalities for v.1.0 are:

  1. User registers
  2. Verification email sent to user with JWT
  3. Verified user can login
  4. 3rd party logins (Facebook, Google+ and Twitter)
  5. Password reset email which redirect to user's secret question
  6. Answer secret question and reset password
  7. Google recaptcha for spam protection

I might put in a honeypot for further spam protection

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (2)

Collapse
 
treevil profile image
Trevor

Look like a cool module.
Did you release the code somewhere?

Collapse
 
kauresss profile image
Kauress

I will soon on gumroad and here :)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay