Skip to content

Commit

Permalink
Added encoding to username & password (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-pitale authored Mar 5, 2024
1 parent 529e786 commit ca71fbf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ const destination: DestinationDefinition<Settings> = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: `user_name=${settings.username}&password=${settings.userPassword}&auth_type=password`
body: `user_name=${encodeURIComponent(settings.username)}&password=${encodeURIComponent(
settings.userPassword
)}&auth_type=password`
})
return { accessToken: res.data.authToken }
}
Expand Down

0 comments on commit ca71fbf

Please sign in to comment.