passport-2fa-totp | TOTP based Two-Factor Authentication | Authentication library
kandi X-RAY | passport-2fa-totp Summary
kandi X-RAY | passport-2fa-totp Summary
TOTP based Two-Factor Authentication for Passport and Node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new TOTStrategy
passport-2fa-totp Key Features
passport-2fa-totp Examples and Code Snippets
Community Discussions
Trending Discussions on passport-2fa-totp
QUESTION
I am implementing two factor authentication using passportjs module [passport-2fa-totp][1]http://www.passportjs.org/packages/passport-2fa-totp/
I am able to successfully register user and store its key.
I am not able to verify totp-code generated by google authenticator app I am using the following code as reference,
`passport.use(new TwoFAStartegy(function (username, password, done) {
...ANSWER
Answered 2019-Feb-27 at 14:25Please check that you are getting username
, password
and code
in these exact fields only and not in any other field, because passport-2fa-totp
assumes that you are getting in these fields only.
code
field will be passed to the second callback of TwoFAStartegy
and verify
fn will verify the the code.
Maybe, you can get additional info if you do this,
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install passport-2fa-totp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page