Shiny authentication module for use with logoutUI

logout(input, output, session, active)

Arguments

input

shiny input

output

shiny output

session

shiny session

active

[reactive] supply the returned user_auth boolean reactive from login here to hide/show the logout button

Value

The reactive output of this module should be supplied as the log_out argument to the login module to trigger the logout process

Details

Call via shiny::callModule(logout, "your_id", ...)

Examples

if (FALSE) { logout_init <- shiny::callModule(logout, "logout", active = reactive(user_credentials()$user_auth)) }