Skip to content

Commit

Permalink
fix(native/START_LOGIN_FLOW): migrate to new capacitor http API
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Dec 19, 2023
1 parent 0055d6f commit 2543758
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/store/native/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@ export const actionsDefinition = {
do {
await new Promise(resolve => setTimeout(resolve, 1000))
try {
const data = new URLSearchParams()
data.set('token', json.poll.token)
res = await Http.request({
url: json.poll.endpoint,
method: 'POST',
data: {token: json.poll.token},
data: data.toString(),
headers: {'Content-type': 'application/x-www-form-urlencoded'}
})
} catch (e) {
Expand Down

0 comments on commit 2543758

Please sign in to comment.