tango-app-ui-auth 3.3.1-beta.3 → 3.3.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -285,6 +285,15 @@ class TangoAuthLoginComponent {
285
285
  this.service.userProfileDet().pipe(takeUntil(this.destroy$)).subscribe({
286
286
  next: (res) => {
287
287
  if (res && res.code == 200) {
288
+ if (res.data.userType === 'client') {
289
+ window.hj('identify', res.data.email, {
290
+ 'clientId': res.data?.clientId,
291
+ 'clientName': res.data?.clientName,
292
+ 'email': res.data?.email,
293
+ 'userName': res.data?.userName,
294
+ 'mobileNumber': res.data?.mobileNumber,
295
+ });
296
+ }
288
297
  this.gs.userAccess.next(res.data?.permission);
289
298
  this.cd.detectChanges();
290
299
  this.router.navigate(['/manage']);