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

Async-await support for the login and registration related calls #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

r3econ
Copy link

@r3econ r3econ commented Nov 4, 2024

This PR adds an extension with async-await support for the login and registration related calls.

Usage

try await Cidaas.shared.loginWithBrowser(using: viewController)
try await Cidaas.shared.registerWithBrowser(using: viewController)
try await Cidaas.shared.getRequestID()
try await Cidaas.shared.getClientInfo(requestId: requestId)
try await Cidaas.shared.getSocialLoginProviders()
try await Cidaas.shared.getAccessToken(with: refreshToken)
try await Cidaas.shared.loginWithSocial(using: viewController, provider: "facebook", requestID: requestID)

@r3econ r3econ marked this pull request as ready for review November 4, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant