Learn R Programming

shinyauthr (version 0.1.1)

logout: logout server module

Description

Shiny authentication module for use with logoutUI

Usage

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

Run this code
# 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