Member-only story
Sign In With Apple (Swift 5, XCode 11)
Apple lauched new feature for the authentication “Sign In With Apple” in WWDC 2019. They try to improve your app’s login experiences through an overview of the available authentications services. So let’s meet the AuthenticationServices framework which facilitates to authenticate the user by providing ‘ASAuthorizationAppleIDButton’. Like Facebook and Google login Apple also provide the user information as mentioned in it’s scope. Great news is what ‘Sign In With Apple’ also supports android and web platform. But for except the iOS Apple doesn’t provide any SDK. This option is called Sign in with Apple JS as it’s JavaScript-based.Sign in with Apple works across all Apple devices — iOS/iPadOS devices (iPhone, iPad and iPod touch), Mac, Apple TV and Apple Watch. Let’s integrate it in out iOS app.
Requirement:
IDE: Xcode 11
Language: Swift 5
Also need active apple developer account.
- Create a new Xcode project.
- Go to Project Setting under the Capabilities add new one by searching for ‘Sign In With Apple’.
Once you added, it looks like…
3. Import framework “AuthenticationServices”
import AuthenticationServices