This function is used to secure your 'shiny' app's server function. Make sure to pass
your 'shiny' app's server function as the first argument to secure_server() at
the bottom of your 'shiny' app's "server.R" file.
secure_server(
server,
custom_sign_in_server = NULL,
custom_admin_server = NULL,
allow_reconnect = FALSE
)A Shiny server function (e.g function(input, output, session) {})
Either NULL, the default, or a Shiny module server containing your custom
sign in server logic.
Either NULL, the default, or a Shiny server function containing your custom admin
server functionality.
argument to pass to the 'shiny' session$allowReconnect() function. Defaults to
FALSE. Set to TRUE to allow reconnect with shiny-server and Rstudio Connect. Set to "force"
for local testing. See https://shiny.rstudio.com/articles/reconnecting.html for more information.
session session object with new reactive session$userData$current_user which is set to NULL if user is not signed in or a list with user data if the user is signed in