@valtimo/components 10.8.3 → 10.8.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.
@@ -4916,6 +4916,8 @@ class FormioComponent {
4916
4916
  this.readOnly$.next(readOnlyValue);
4917
4917
  }
4918
4918
  ngOnInit() {
4919
+ Formio.setProjectUrl(location.origin);
4920
+ Formio.authUrl = location.origin;
4919
4921
  this.openRouteSubscription();
4920
4922
  this.errors$.next([]);
4921
4923
  this.setInitialToken();
@@ -4977,6 +4979,7 @@ class FormioComponent {
4977
4979
  });
4978
4980
  }
4979
4981
  setToken(token) {
4982
+ Formio.setUser(jwt_decode(token));
4980
4983
  Formio.setToken(token);
4981
4984
  localStorage.setItem('formioToken', token);
4982
4985
  this.setTimerForTokenRefresh(token);