jaredhanson / passport-oauth2

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

Expose callback query to token params #158

Closed Dimitris-Ilias closed 2 years ago

Dimitris-Ilias commented 2 years ago

Sometimes providers will require the use of a custom param found in the callback URL to be included in the authorization request This PR exposes the query params of the callback to tokenParams for strategies to be able to utilize that in their implementation

Dimitris-Ilias commented 2 years ago

Taking a closer look at the code probably the same can be done by passing this param to options. Closing for now