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
this.logger.warning(`Email mismatch detected. Current email, ${currentEmail} differs from email passed to selectPlacements call, ${newEmail}. Proceeding to call identify with ${newEmail}. Please verify your implementation.`);
this.logger.warning(`emailsha256 mismatch detected. Current mParticle ${normalizedHashedEmailUserIdentityType} identity, ${currentHashedEmail}, differs from from 'emailsha256' passed to selectPlacements call, ${newHashedEmail}. Proceeding to call identify with ${normalizedHashedEmailUserIdentityType} set to ${newHashedEmail}. Please verify your implementation`);
208
+
}
209
+
if(!isEmpty(newIdentities)){
184
210
// Call identify with the new user identities
185
211
try{
186
212
awaitnewPromise<void>((resolve,reject)=>{
187
213
this.identityService.identify({
188
214
userIdentities: {
189
215
...currentUserIdentities,
190
-
email: newEmail
216
+
...newIdentities
191
217
}
192
218
},()=>{
193
219
resolve();
@@ -198,32 +224,6 @@ export default class RoktManager {
this.logger.warning(`emailsha256 identity mismatch detected. Current mParticle 'other' identity, ${currentOther} differs from emailsha256 passed to selectPlacements call, ${newEmailSha256}. Proceeding to call identify with 'other' set to ${newEmailSha256}. Please verify your implementation.`);
208
-
}
209
-
210
-
// Call identify with the new 'other' identity mapped from emailsha256
211
-
try{
212
-
awaitnewPromise<void>((resolve,reject)=>{
213
-
this.identityService.identify({
214
-
userIdentities: {
215
-
...currentUserIdentities,
216
-
other: newEmailSha256asstring
217
-
}
218
-
},()=>{
219
-
resolve();
220
-
});
221
-
});
222
-
}catch(error){
223
-
this.logger.error('Failed to identify user with new emailsha256 mapped to other identity: '+JSON.stringify(error));
'emailsha256 identity mismatch detected. Current mParticle \'other\' identity, old-other-value differs from emailsha256 passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with \'other\' set to new-emailsha256-value. Please verify your implementation.'
989
+
"emailsha256 mismatch detected. Current mParticle other5 identity, old-other-value, differs from from 'emailsha256' passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with other5 set to new-emailsha256-value. Please verify your implementation"
941
990
);
942
991
});
943
992
944
-
it('should not call identify when emailsha256 matches current user other identity',()=>{
993
+
it('should not call identify when emailsha256 matches current user other5 identity',()=>{
"emailsha256 mismatch detected. Current mParticle other identity, undefined, differs from from 'emailsha256' passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with other set to new-emailsha256-value. Please verify your implementation"
1085
+
);
1029
1086
});
1030
1087
1031
1088
it('should not call identify when current user has other identity but emailsha256 is null',()=>{
0 commit comments