@valtimo/components 5.15.0 → 5.15.2

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.
@@ -3702,6 +3702,8 @@ class FormioComponent {
3702
3702
  .pipe(map$1(() => this.translateService.currentLang));
3703
3703
  }
3704
3704
  ngOnInit() {
3705
+ Formio.setProjectUrl(location.origin);
3706
+ Formio.authUrl = location.origin;
3705
3707
  const documentDefinitionName = this.route.snapshot.paramMap.get('documentDefinitionName');
3706
3708
  const documentId = this.route.snapshot.paramMap.get('documentId');
3707
3709
  this.formDefinition = this.form;
@@ -3762,6 +3764,7 @@ class FormioComponent {
3762
3764
  });
3763
3765
  }
3764
3766
  setToken(token) {
3767
+ Formio.setUser(jwt_decode(token));
3765
3768
  Formio.setToken(token);
3766
3769
  localStorage.setItem('formioToken', token);
3767
3770
  this.setTimerForTokenRefresh(token);