datastorm-open / shinymanager

Simple and secure authentification mechanism for single shiny applications.
https://datastorm-open.github.io/shinymanager/
386 stars 79 forks source link

Users are automatically disconneted #91

Closed dr4kan closed 3 years ago

dr4kan commented 3 years ago

It looks like that users are automatically disconnected from the app after some time. How to prevent this behavior? Thanks

bthieurmel commented 3 years ago

Hi,

For some security reason (prevent app stay open), there is a default timeout for disconnect if app is not used by user. You can disabled this :

secure_server(
  check_credentials,
  timeout = 0, # default to 15, 0 to disable
  inputs_list = NULL,
  max_users = NULL,
  fileEncoding = "",
  session = shiny::getDefaultReactiveDomain()
)
dr4kan commented 3 years ago

Thanks