Skip to content

Commit 6add183

Browse files
authored
Merge pull request #1337 from bigomics/dev-inactivity-timeout
feat: add inactivity timeout option
2 parents e341317 + 32fc925 commit 6add183

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/app/R/global.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ opt.default <- list(
168168
ENABLE_USER_LOCK = TRUE,
169169
ENABLE_HEARTBEAT = TRUE,
170170
ENABLE_INACTIVITY = TRUE,
171+
INACTIVITY_TIMEOUT = 1800,
171172
ENABLE_ANNOT = FALSE,
172173
ENABLE_UPGRADE = FALSE,
173174
ENCRYPTED_EMAIL = FALSE,

components/app/R/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ app_server <- function(input, output, session) {
12491249
inactivityCounter(0) # Reset counter on any user activity
12501250
})
12511251

1252-
inactivityControl <- start_inactivityControl(session, timeout = 1800, inactivityCounter)
1252+
inactivityControl <- start_inactivityControl(session, timeout = opt$INACTIVITY_TIMEOUT, inactivityCounter)
12531253
observe({
12541254
inactivityControl()
12551255
})

0 commit comments

Comments
 (0)