Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2fa-playground

An attempt to showcase two-factor authentication with node.js - a work in progress

Change routes/users.js to your gmail credentials

  var mailData = {
      from: 'your@email.com',
      to: 'your@email.com', // or req.session.currentUser.email
      subject: 'Secure Code',
      text: 'Your Secure Sign-In Code: ' + secureCode
    };

    var transporter = nodemailer.createTransport('smtps://user%40gmail.com:password@stmp.gmail.com');
  1. npm install
  2. npm start

2FA flow

  1. Sign Up
  2. Login in with email and password
  3. Confirm email address and send secure code
  4. Login with email, password, and secure code

About

2-factor authentication node.js

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages