Привет ) У меня есть масив scopes . Мне нужно получать такой формат < scopes=...&scopes=... > используя querystring. А я получаю вот такой < scopes[]=...&scopes[]=... >.
`export const googleAuthorize = (authentication_backend = "jwt") => dispatch => {
const scopes = [
"
https://www.googleapis.com/auth/userinfo.profile",
"
https://www.googleapis.com/auth/userinfo.email",
]
const params = {authentication_backend, scopes: qs.stringify(scopes)}
const config = {headers: {"Content-Type": "application/json"}, params}
const requestUrl =
http://localhost:8000/auth/google/authorize
axios.get(requestUrl, config)
.then(function (response) {
// dispatch({type: GOOGLE_AUTH_SUCCESS, payload:
response.data})
window.open(
${response.data.authorization_url}
)
console.log('GOOGLE_AUTH_SUCCESS',
response.data);
})
.catch(function (error) {
// dispatch({type: GOOGLE_AUTH_FAIL, payload: error})
console.log('GOOGLE_AUTH_FAIL', error);
});
}`