@valtimo/components 10.8.2 → 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.
- package/esm2020/lib/components/form-io/form-io.component.mjs +4 -1
- package/fesm2015/valtimo-components.mjs +3 -0
- package/fesm2015/valtimo-components.mjs.map +1 -1
- package/fesm2020/valtimo-components.mjs +3 -0
- package/fesm2020/valtimo-components.mjs.map +1 -1
- package/lib/components/form-io/form-io.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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);
|