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

Have clearSession() yield a Result<Void, WebAuthError> #584

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Dec 9, 2021

Changes

⚠️ THIS PR CONTAINS BREAKING CHANGES

The clearSession(federated) method of WebAuth was the only async method remaining in Auth0.swift v2 that did not yield a Result. This PR changes it to yield a Result<Void, WebAuthError> for consistency with the rest of the library.

Testing

The changed method and its overloads (both Combine and async/await) were tested manually in a test app on iOS 15.2 (simulator) and macOS 11.6.1, using Xcode 13.2 beta 2 (13C5081f).

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@Widcket Widcket requested a review from a team as a code owner December 9, 2021 16:35
@Widcket Widcket added the review:small Small review label Dec 9, 2021
@Widcket Widcket force-pushed the v2/clearsession-result branch 2 times, most recently from 94cffc6 to 3b0dbfc Compare December 9, 2021 16:43
@Widcket Widcket merged commit cf4b139 into beta Dec 9, 2021
@Widcket Widcket deleted the v2/clearsession-result branch December 9, 2021 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants