Comments (4)
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.
Hi @kristianmandrup, do you still facing the problem of getting authorized?
from koa-tutorial-authenticate-with-persistent-session-using-redis.
Yes, I left the project to come back to it later... any ideas?
from koa-tutorial-authenticate-with-persistent-session-using-redis.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koa-tutorial-authenticate-with-persistent-session-using-redis.