View source: R/sign_out_from_shiny.R
sign_out_from_shiny | R Documentation |
Call this function to sign a user out of your Shiny app. This function should be called inside the server function of your Shiny app. See https://github.com/Tychobra/polished/blob/master/inst/examples/polished_example_01/server.R For an example of this function being called after the user clicks a "Sign Out" button.
sign_out_from_shiny(
session = shiny::getDefaultReactiveDomain(),
redirect_page = "?page=sign_in"
)
session |
the Shiny |
redirect_page |
the query string for the page that the user should be redirected to after signing out. |
invisible(NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.