-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix(Auth): Fix multiple continuation resumes in hostedUI #3466
Conversation
b81c3b8
to
3b4da32
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3466 +/- ##
==========================================
+ Coverage 68.06% 68.12% +0.06%
==========================================
Files 1079 1016 -63
Lines 36356 34454 -1902
==========================================
- Hits 24746 23473 -1273
+ Misses 11610 10981 -629
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
(continuation: CheckedContinuation<[URLQueryItem], Error>) in | ||
guard let self = self else { return } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and below
guard let self = self else { return } | |
guard let self else { return } |
Issue #
#3362
Description
The PR is aimed at using weak references in the completion blocks of continuations to avoid any retain cycles and at the same time also use the
canStart
API available in ASWebAuthentication to only start if its possible.General Checklist
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.