Bundle ID
rather than the Service ID
, is configured as the Client ID
within the Privy
Dashboard for the Apple Social login credentials.ASAuthorizationAppleIDButton
class from Apple’s AuthenticationServices
framework.
Take a look at the snippet below if you wish to use the ASAuthorizationAppleIDButton
in SwiftUI.
AuthenticationServices
framework also offers the SignInWithAppleButton
SwiftUI
View,
but relying on ASAuthorizationAppleIDButton
instead allows the PrivySDK to handle the whole
authentication process for you.ASAuthorizationController
after calling privy.oAuth.login(with: OAuthProvider.apple)
. Add the SignInWithApple
button to your view as described above, and trigger the login method when tapped.