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

Allow scope to be an array #12

Closed djrenren closed 11 years ago

djrenren commented 11 years ago

It makes sense that we store a list of scope permissions as an array rather than a comma separated string.

jaredhanson commented 11 years ago

This is already supported:

app.get('/auth/github',
  passport.authenticate('github', { scope: ['foo', 'bar'] }));
djrenren commented 11 years ago

oh awesome, didn't see it documented. Sorry about that.