Slide 55
Slide 55 text
SignInWithAppleButton(
onRequest: { !!( },
onCompletion: { result in
!!(
let appleIDToken = appleIDCredential.identityToken
let idTokenString = String(data: appleIDToken, encoding: .utf8)
let credential = OAuthProvider.credential(withProviderID: “apple.com",
idToken: idTokenString,
rawNonce: nonce)
do {
try await Auth.auth().signIn(with: credential)
}
catch {
!& handle error
}
}
).frame(width: 280, height: 45, alignment: .center)
Sign in with Apple