@valtimo/components 5.12.0 → 5.12.1

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.
@@ -3670,6 +3670,8 @@ class FormioComponent {
3670
3670
  .pipe(map$1(() => this.translateService.currentLang));
3671
3671
  }
3672
3672
  ngOnInit() {
3673
+ Formio.setProjectUrl(location.origin);
3674
+ Formio.authUrl = location.origin;
3673
3675
  const documentDefinitionName = this.route.snapshot.paramMap.get('documentDefinitionName');
3674
3676
  const documentId = this.route.snapshot.paramMap.get('documentId');
3675
3677
  this.formDefinition = this.form;
@@ -3730,6 +3732,7 @@ class FormioComponent {
3730
3732
  });
3731
3733
  }
3732
3734
  setToken(token) {
3735
+ Formio.setUser(jwt_decode(token));
3733
3736
  Formio.setToken(token);
3734
3737
  localStorage.setItem('formioToken', token);
3735
3738
  this.setTimerForTokenRefresh(token);