Skip to content

Capture Access Token for Github Auth#80

Open
jamescarr wants to merge 2 commits intobnoguchi:masterfrom
jamescarr:master
Open

Capture Access Token for Github Auth#80
jamescarr wants to merge 2 commits intobnoguchi:masterfrom
jamescarr:master

Conversation

@jamescarr
Copy link

I'm using mongoose-auth for a github based mashup I'm working on and needed the access token to make API requests on behalf of the user. Unfortunately it seems that the accessToken doesn't get captured so I added it. :)

@wookiehangover
Copy link

wow, just ended up doing something similar, but attached the token to the user's session rather than into mongo. FWIW, given the nature of oauth tokens, it's probably not a great idea to persist them to your database. edit: having given it some more thought, it's probably fine either way.

anyway, +1 for exposing oauth response tokens.

@jamescarr btw, nice blog!

@jamescarr
Copy link
Author

@bnoguchi anyway we can get this closed? Let me know if there is anything I should do to clean this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants