Created
March 21, 2020 02:50
-
-
Save MaatheusGois/416085e4c8feb7d8134e5f63a8cbc1ba 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 handleAppleIdRequest() { | |
//1 | |
let appleIDProvider = ASAuthorizationAppleIDProvider() | |
let request = appleIDProvider.createRequest() | |
request.requestedScopes = [.fullName, .email] | |
//2 | |
let authorizationController = ASAuthorizationController(authorizationRequests: [request]) | |
//3 | |
authorizationController.delegate = self | |
//4 | |
authorizationController.performRequests() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment