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")
)
Shiny id
CSS class of login button
CSS class of logout button
Text to show on login button
Text to show on logout button
The type of login screen
Set the scopes, minimum needs is "email"
Shiny UI
Shiny Module for use with googleAuth_js