Update flitter-auth & fix state search params
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -69,9 +69,8 @@ class Oauth2 extends Oauth2Controller {
|
||||
|
||||
let state;
|
||||
if ( state = (req.query.state || req.body.state) ) {
|
||||
state = Array.isArray(req.query.state) ? req.query.state[0] : req.query.state
|
||||
const uri_params = new URLSearchParams(uri.params)
|
||||
uri_params.set('state', state)
|
||||
state = Array.isArray(state) ? state[0] : state
|
||||
uri.searchParams.set('state', state)
|
||||
}
|
||||
|
||||
if ( req.user.has_authorized(starship_client) ) {
|
||||
|
||||
Reference in New Issue
Block a user