jaredhanson / passport-oauth1

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

Application-level state #18

Closed jaredhanson closed 3 years ago

jaredhanson commented 3 years ago

This PR implements support for storing application-level state, provided as an option to passport.authenticate().

passport.authenticate('twitter', { state: { beep: 'boop' } });
jaredhanson commented 3 years ago

I've merged this pull request, and released passport-oauth1@1.2.0. More information on the improved state support and how to take advantage it are provided on the blog: Application State in OAuth 1.0