Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace fetch by XHR and remove _dispatchEvent #314

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

amenophis
Copy link
Contributor

Target branch:
Resolves issue #

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

window.credentials API didn't work well on iOS when used with fetch.
This PR replace fetch usages by XMLHttpRequest with Promise.

Tested on iPhone 8 with iOS 15.7, it works much better.

I also remove this._dispatchEvent because it seems useless.
@Spomky What can we add in case of error to send the error message to the user ?

@Spomky Spomky merged commit 4ed2ff5 into web-auth:4.3.x Oct 5, 2022
@Spomky Spomky added this to the 4.3.0 milestone Oct 5, 2022
@Spomky
Copy link
Contributor

Spomky commented Oct 5, 2022

Perfect1 many thanks.

@Spomky Spomky added the bug Something isn't working label Oct 5, 2022
@amenophis amenophis deleted the fetch-xhr branch October 6, 2022 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants