@brggroup/share-lib 0.1.11 → 0.1.13
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.
|
@@ -719,6 +719,19 @@ class AuthService extends HTTPService {
|
|
|
719
719
|
let params = new HttpParams().append('App_Org_Id', App_Org_Id);
|
|
720
720
|
return this.postParams(AppGlobals.apiEndpoint + URLs$4.changeOrgLogin, params);
|
|
721
721
|
}
|
|
722
|
+
static pingInterVal;
|
|
723
|
+
startPingAuth(intervalTime) {
|
|
724
|
+
if (!AuthService.pingInterVal) {
|
|
725
|
+
if (!intervalTime || intervalTime < 5 * 60 * 1000) {
|
|
726
|
+
intervalTime = 5 * 60 * 1000;
|
|
727
|
+
}
|
|
728
|
+
AuthService.pingInterVal = setInterval(() => {
|
|
729
|
+
if (TokenStorage.getToken()) {
|
|
730
|
+
this.pingAuth();
|
|
731
|
+
}
|
|
732
|
+
}, intervalTime);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
722
735
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AuthService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
723
736
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
724
737
|
}
|