powered by
Shiny authentication module for use with logoutUI
logout(input, output, session, active)
shiny input
shiny output
shiny session
[reactive] supply the returned user_auth boolean reactive from login here to hide/show the logout button
user_auth
The reactive output of this module should be supplied as the log_out argument to the login module to trigger the logout process
log_out
Call via shiny::callModule(logout, "your_id", ...)
shiny::callModule(logout, "your_id", ...)
# NOT RUN { logout_init <- shiny::callModule( logout, id = "logout", active = reactive(user_credentials()$user_auth) ) # } # NOT RUN { # }
Run the code above in your browser using DataLab