Closed leedorian closed 8 years ago
I've been trying. I updated the example to express 4 code (this is my first time using express 4, so hopefully I got it all right).... but I can't seem to get it to work. When I try to hit /auth/github which should go to github for me to log in, it automatically goes to the failureRedirect URL.
Wish I could get more info on this, sadly github is the only OAuth provider I want to use with my app... my app specifically is designed to use github gists.
FWIW, I've been using this successfully with Express 4.
The auth call works, but I'm not having any luck getting data. /accounts just redirects to /, and it defaults to only getting public info, which you don't need auth for. Any subsequent API calls return undefined.
I've had no problems with Express 4.x by following that example. Probably worth closing this issue to avoid worrying people.
Examples have been moved to separate repositories. Closing.
Refer to this for a example using Express 4.0 and OAuth 2.0: https://github.com/passport/express-4.x-facebook-example
Does it work with express 4? Is there express 4 example?