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 the revoke() method of the Credentials Manager yield a Result #582

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Dec 9, 2021

Changes

⚠️ THIS PR CONTAINS BREAKING CHANGES

In v2, all the async methods in the library yield a Result – except the revoke(headers:callback:) method of the Credentials Manager. This PR updates it to yield a Result as well, for consistency with the rest of the library.

Similar examples in Auth0.swift:

  • revoke(refreshToken:) -> Request<Void, AuthenticationError> (which produces a Result<Void, AuthenticationError>)
  • resetPassword(email:connection:) -> Request<Void, AuthenticationError> (which produces a Result<Void, AuthenticationError>)

Testing

  • 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 00:28
@Widcket Widcket added the review:small Small review label Dec 9, 2021
@Widcket Widcket merged commit 08340cc into beta Dec 9, 2021
@Widcket Widcket deleted the v2/revoke-result branch December 9, 2021 14:51
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.

2 participants