A Javascript Google authorisation flow for Shiny apps.

googleAuth_jsUI(
  id,
  login_class = "btn btn-primary",
  logout_class = "btn btn-danger",
  login_text = "Log In",
  logout_text = "Log Out",
  prompt = c("consent", "select_account", "both", "none"),
  scopes = getOption("googleAuthR.scopes.selected", "email")
)

Arguments

id

Shiny id

login_class

CSS class of login button

logout_class

CSS class of logout button

login_text

Text to show on login button

logout_text

Text to show on logout button

prompt

The type of login screen

scopes

Set the scopes, minimum needs is "email"

Value

Shiny UI

Details

Shiny Module for use with googleAuth_js