aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/framework/src/services/forceLogoutService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/framework/src/services/forceLogoutService.ts')
-rw-r--r--sdnr/wt/odlux/framework/src/services/forceLogoutService.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/sdnr/wt/odlux/framework/src/services/forceLogoutService.ts b/sdnr/wt/odlux/framework/src/services/forceLogoutService.ts
index ce4faab6b..0c7c38dff 100644
--- a/sdnr/wt/odlux/framework/src/services/forceLogoutService.ts
+++ b/sdnr/wt/odlux/framework/src/services/forceLogoutService.ts
@@ -27,11 +27,16 @@ let tickTimer = 15;
export const startForceLogoutService = (store: ApplicationStore) => {
applicationStore = store;
- createForceLogoutInterval();
+ if (process.env.NODE_ENV === "development") {
+ console.warn("logout timer not started in development mode");
+ } else {
+ createForceLogoutInterval();
+ }
+
};
const createForceLogoutInterval = () => {
- console.log("logout timer running...")
+ console.log("logout timer running...");
return setInterval(function () {
if (applicationStore && applicationStore.state.framework.authenticationState.user) {