You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let userEmail = user.identities[NSNumber(value:MPIdentity.email.rawValue)]else{
63
+
returnfalse
64
+
}
65
+
return email != userEmail
66
+
}()
67
+
lethashedEmailMismatch:Bool={
68
+
guardlet hashedEmail = hashedEmail,
69
+
let hashedEmailIdentity = hashedEmailIdentity,
70
+
let userHashedEmail = user.identities[hashedEmailIdentity]else{
71
+
returnfalse
72
+
}
73
+
return hashedEmail != userHashedEmail
74
+
}()
63
75
64
76
if emailMismatch || hashedEmailMismatch {
65
77
// If there is an existing email or hashed email but it doesn't match what was passed in, warn the customer
66
78
if emailMismatch {
67
79
print("The existing email on the user (\(userEmailIdentity ??"nil")) does not match the email passed in to `selectPlacements:` (\(email ??"nil")). Please remember to sync the email identity to mParticle as soon as you receive it. We will now identify the user before creating the layout")
68
80
}
69
81
if hashedEmailMismatch {
70
-
print("The existing hashed email on the user (\(userHashedEmailIdentity??"nil")) does not match the email passed in to `selectPlacements:` (\(hashedEmail ??"nil")). Please remember to sync the email identity to mParticle as soon as you receive it. We will now identify the user before creating the layout")
82
+
print("The existing hashed email on the user (\(user.identities[hashedEmailIdentity??NSNumber(value:-1)]??"nil")) does not match the email passed in to `selectPlacements:` (\(hashedEmail ??"nil")). Please remember to sync the hashed email identity to mParticle as soon as you receive it. We will now identify the user before creating the layout")
0 commit comments