logout: logout server module (deprecated)

Description Arguments Details Value Examples

View source: R/logout.R

Description

Deprecated. Use logoutServer instead.

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

Details

Shiny authentication module for use with logoutUI

Call via shiny::callModule(shinyauthr::logout, "id", ...)

This function is now deprecated in favour of logoutServer which uses shiny's new moduleServer method as opposed to the callModule method used by this function. See the logoutServer documentation For details on how to migrate.

Value

Reactive boolean, to be supplied as the log_out argument of the login module to trigger the logout process

Examples

1
2
3
4
5
6
7
8
## Not run: 
logout_init <- shiny::callModule(
  logout,
  id = "logout",
  active = reactive(user_credentials()$user_auth)
)

## End(Not run)

shinyauthr documentation built on July 20, 2021, 9:07 a.m.