Apple

TerraCore v0

Login your user with Apple account, for iOS only

Installation#

pod 'JanusApple', '~> [version]'

Enable Apple login method in Terra Console#

Please contact us we will setup it for you.
You will need to create app id then give us the Apple AppID

Usage#

Inside an UIViewController, call this function

TerraAuth.getInstance(by: terraApp)?.loginWithApple(presentViewController: self, delegate: self)

with

extension MyUIViewController: LoginManagerDelegate {
func loginManagerDidLoginSuccess(authInfo: IAuthInfo) {
// handle successful login
}
func loginManagerDidLoginFail(error: AuthError?) {
// handle failed login
}
}

After logging in success, you now have the access_token. Please continue to Access Token Usage for usage guide.