Skip to contents

Adds the package's client-side JavaScript helpers as an htmlDependency to your Shiny UI. This enables features such as redirection and setting the browser cookie token.

Without adding this to the UI of your app, the oauth_module_server() will not function.

Usage

use_shinyOAuth()

Value

A tagList containing a singleton dependency tag that ensures the JS file inst/www/shinyOAuth.js is loaded

Details

Place this near the top-level of your UI (e.g., inside fluidPage() or tagList()), similar to how you would use shinyjs::useShinyjs().

Examples

ui <- shiny::fluidPage(
  use_shinyOAuth(),
  # ...
)