-
-
Save cardoso/7dfb72764c790e466841b785b7f1d57f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc func handleSignInPress() { | |
let provider = ASAuthorizationAppleIDProvider() | |
let request = provider.createRequest() | |
request.requestedScopes = [.fullName, .email] | |
let controller = ASAuthorizationController(authorizationRequests: [request]) | |
controller.delegate = self | |
controller.presentationContextProvider = self | |
controller.performRequests() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment