项目作者: waltermanias

项目描述 :
POC for 2FA
高级语言: JavaScript
项目地址: git://github.com/waltermanias/2FA.git
创建时间: 2021-05-16T23:22:49Z
项目社区:https://github.com/waltermanias/2FA

开源协议:

下载


2FA with Speakeasy

This solution is a POC to test Speakeasy.

Generate a QR Code

The next command will generate a QR code that you may scan with your phone.

node index.js

After the command was run, you will find a file called example.html in the project root. Open it in your preferred web browser and scan it with the Google Authenticator app installed on your phone.

Verify the TOTP 2FA code

Run the next command with the code that will appear in Google Authenticator App.

node verify.js

You will see true or false according to the code you have put in the code in your console.

Happy coding! 🤓