Update flitter-auth & fix state search params
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-09-14 23:38:35 -05:00
parent 7f338325b9
commit cf1ea362cd
3 changed files with 7 additions and 8 deletions

View File

@@ -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) ) {