Last active
June 12, 2019 14:37
-
-
Save yusufozgul/ba1b4e12c525c6c6a3285c6c35cecfc9 to your computer and use it in GitHub Desktop.
Sign in with Apple
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 authAppleID() | |
{ | |
let appleIDProvider = ASAuthorizationAppleIDProvider() | |
let authRequest = appleIDProvider.createRequest() | |
authRequest.requestedScopes = [.email, .fullName] | |
let authController = ASAuthorizationController(authorizationRequests: [authRequest]) | |
authController.presentationContextProvider = self | |
authController.delegate = self | |
authController.performRequests() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment