You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Strategy.authorizationParams sets the outgoing params to the incoming options. In passport-oauth2\lib\strategy.js on line 276 in the function stored we find if (state) { params.state = state; }. Because options and params are now the same object, the global state is now set to the state of a single user. This breaks the code for the next OAuth request when it reaches line 256 if (state && typeof state == 'string') {. I've rewritten the function. Hopefully you can use this.
Currently
Strategy.authorizationParams
sets the outgoing params to the incoming options. Inpassport-oauth2\lib\strategy.js
on line 276 in the functionstored
we findif (state) { params.state = state; }
. Because options and params are now the same object, the global state is now set to the state of a single user. This breaks the code for the next OAuth request when it reaches line 256if (state && typeof state == 'string') {
. I've rewritten the function. Hopefully you can use this.The text was updated successfully, but these errors were encountered: