Code Monkey home page Code Monkey logo

Comments (4)

kristianmandrup avatar kristianmandrup commented on June 27, 2024

Ah, I forgot to create the app on github. Now I use the tokens given to me by github for the tutorial app.

2015-08-24T16:12:38.650Z - GET /favicon.ico
2015-08-24T16:12:42.395Z - GET /app
2015-08-24T16:12:42.402Z - GET /auth/github
2015-08-24T16:13:14.477Z - GET /auth/github/callback?code=1d3c54ea5dfa4e858ae9
token 9744eed916a4a8ba2b93ef62a1454763ede0f297
TypeError: Cannot set property 'user' of undefined
    at /Users/kristianmandrup/repos/graphql/koa-tutorial-authenticate-with-persistent-session-using-redis/node_modules/passport-github/node_modules/passport-oauth/node_modules/passport/lib/passport/http/request.js:45:35
    at pass (/Users/kristianmandrup/repos/graphql/koa-tutorial-authenticate-with-persistent-session-using-redis/node_modules/koa-passport/node_modules/passport/lib/authenticator.js:267:43)
    at serialized (/Users/kristianmandrup/repos/graphql/koa-tutorial-authenticate-with-persistent-session-using-redis/node_modules/koa-passport/node_modules/passport/lib/authenticator.js:276:7)
    at /Users/kristianmandrup/repos/graphql/koa-tutorial-authenticate-with-persistent-session-using-redis/auth.js:22:3
    at pass (/Users/kristianmandrup/repos/graphql/koa-tutorial-authenticate-with-persistent-session-using-redis/node_modules/koa-passport/node_modules/passport/lib/authenticator.js:284:9)

from koa-tutorial-authenticate-with-persistent-session-using-redis.

Zev23 avatar Zev23 commented on June 27, 2024

Hi @kristianmandrup, do you still facing the problem of getting authorized?

from koa-tutorial-authenticate-with-persistent-session-using-redis.

kristianmandrup avatar kristianmandrup commented on June 27, 2024

Yes, I left the project to come back to it later... any ideas?

from koa-tutorial-authenticate-with-persistent-session-using-redis.

Zev23 avatar Zev23 commented on June 27, 2024

From the log it seems like the request object is not found (this.req.user).
Are you running this project itself or using supertest-koa-agent?
Have you tried just running this project in nodejs with all the specific package version in package.json?

from koa-tutorial-authenticate-with-persistent-session-using-redis.

Related Issues (1)

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.