-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/Rewrite to async #24
Conversation
56e0b0f
to
3e608d0
Compare
3e608d0
to
fe280ce
Compare
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.
Awesome 🙌
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.
👌
/// Checks the current auth state and returns the boolean value as promise. | ||
public var checkAuthentication: Promise<Authenticated> { | ||
/// Checks the current auth state and returns the boolean value asynchronously. | ||
public func checkAuthentication() async -> Authenticated { |
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.
Perhaps this function should be throwable and the error handled at the call site.
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.
And you can leave it as a getter as well. :) Though a function is fine by me as well.
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.
Let's remove this function completely. We have a mechanism in terms of notification about the revocation.
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.
Removed.
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.
👌
Note: This is a major update for PovioKitAuth. The old implementation with promises is overridden with async/await.
To be tested more for any edge cases before merging / releasing.
The following social connections need to be tested: