GithubHelp home page GithubHelp logo

twiliodeved / account-security-2fa-node Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 13.0 1.36 MB

Deprecated repository. Please see https://github.com/TwilioDevEd/account-security-quickstart-node

Home Page: https://www.twilio.com/docs/authy/quickstart/two-factor-authentication-nodejs

License: MIT License

JavaScript 46.10% HTML 53.19% CSS 0.70%

account-security-2fa-node's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

account-security-2fa-node's Issues

TypeError: Cannot read property 'json' of undefined

error in server after signing up a new account:

$ nodejs .
Express server started on *:3000
::ffff:10.0.0.123 - - [25/Jan/2017:22:53:29 +0000] "POST /session HTTP/1.1" 403 65 "http://192.168.1.40:3000/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0"
::ffff:10.0.0.123 - - [25/Jan/2017:22:53:41 +0000] "POST /session HTTP/1.1" 403 65 "http://192.168.1.40:3000/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0"
::ffff:10.0.0.123 - - [25/Jan/2017:22:54:31 +0000] "POST /user HTTP/1.1" 200 48 "http://192.168.1.40:3000/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0"
::ffff:10.0.0.123 - - [25/Jan/2017:22:54:31 +0000] "GET /user HTTP/1.1" 200 74 "http://192.168.1.40:3000/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0"
/var/appdata/authy2fa-node/models/User.js:68
response.json(err);
^

TypeError: Cannot read property 'json' of undefined
at /var/appdata/authy2fa-node/models/User.js:68:25
at Request.callback_check [as _callback] (/var/appdata/authy2fa-node/node_modules/authy/index.js:141:17)
at Request.self.callback (/var/appdata/authy2fa-node/node_modules/request/request.js:236:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/var/appdata/authy2fa-node/node_modules/request/request.js:1142:14)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at IncomingMessage. (/var/appdata/authy2fa-node/node_modules/request/request.js:1096:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

Demo App is stuck - getting 304 from GET /authy/status

Hi,

I'm stuck on the demo app.
I manage to register a test account and receive the registration SMS. However when I try to login, the app gets stuck.

Front end shows Awaiting One Touch approval.
Server shows a never-ending series of requests to "GET /authy/status HTTP/1.1" with a 304 response.
ngrok also shows GET /authy/status 304 Not Modified

Error: getaddrinfo ENOTFOUND undefined undefined:27017

Hi,

I am getting the above error while trying to run the server.

Here is the trackback for the step.

manprax@mxbhartendu:~/authy2fa-node$ node .
Express server started on *:3000

/home/manprax/authy2fa-node/node_modules/mongodb/lib/server.js:242
        process.nextTick(function() { throw err; })
                                      ^
Error: getaddrinfo ENOTFOUND undefined undefined:27017
    at errnoException (dns.js:26:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)

I was following the instructions provided in the README.md file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.