jaredhanson / passport-github

GitHub authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-github/?utm_source=github&utm_medium=referral&utm_campaign=passport-github&utm_content=about
MIT License
537 stars 290 forks source link

Stateless example (or bug?) #49

Closed hejhi closed 8 years ago

hejhi commented 9 years ago

Do you know how we can get the token in /auth/github/callback? I'm not sure how to proceed if not...is there another example on how this would be achieved? To make the call to /login/oauth/access_token in the callback there with the code parameter is marked as expired, presumably because it was already used earlier (I'm guessing).

jaredhanson commented 8 years ago

I don't know what this is referring to. This strategy handles the /login/oauth/access_token request internally and supplies the resulting access token to the verify callback. There is no need to exchange the code manually.