logoutServer: Logout server module

View source: R/logoutServer.R

logoutServerR Documentation

Logout server module

Description

Shiny authentication module for use with logoutUI

Usage

logoutServer(input, output, session, active)

Arguments

input

Character String. Shiny input

output

shiny output

session

shiny session

active

Reactive element. Supply the returned user_auth boolean reactive from loginServer here to hide/show the logout button

Notes

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

See Also

Other modules: loginServer(), loginUI(), logoutUI()

Examples

## Not run: 
 logout_init <- shiny::callModule(logoutServer, "logout",  active = reactive(user_credentials()$user_auth))

## End(Not run)

andybeet/authenticate documentation built on Sept. 24, 2023, 11:28 p.m.