public void SetInfo(AppleIdCredential credential) { userIdentifierLabel.Text = credential.User; givenNameLabel.Text = credential.GivenName ?? ""; familyNameLabel.Text = credential.FamilyName ?? ""; emailLabel.Text = credential.Email ?? ""; }
public void CreateUserIdentifier(AppleIdCredential credential) { try { GetKeychainItem().SaveItem(credential.User); } catch (Exception) { Console.WriteLine("Unable to save userIdentifier to keychain."); } }
private void DidCompleteAuthWithAppleId(object sender, AppleIdCredential credential) { // For the purpose of this demo app, show the Apple ID credential information in the ResultViewController. if (!(PresentingViewController is ResultViewController viewController)) { return; } InvokeOnMainThread(() => { viewController.SetInfo(credential); DismissViewController(true, null); }); }