-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I make this work!? #1
Comments
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) |
Hi @kristianmandrup, do you still facing the problem of getting authorized? |
Yes, I left the project to come back to it later... any ideas? |
From the log it seems like the request object is not found (this.req.user). |
I start the server using iojs 3.0
node app.js
ornode --harmony app.js
Then go to
localhost:3000/app
but I always get a 404 error.Also tried testing via supertest
but
logingTest
never logs the message even :(The text was updated successfully, but these errors were encountered: