Skip to content

Commit

Permalink
update prompt on googleAuthUI too (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Apr 24, 2020
1 parent 363ceb2 commit e0f9b19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions R/shiny-auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ googleAuth <- function(input, output, session,
login_class="btn btn-primary",
logout_class="btn btn-default",
access_type = c("online","offline"),
approval_prompt = c("auto","force"),
prompt = c("consent", "select_account", "both", "none"),
revoke = FALSE){
check_package_loaded("shiny")

access_type <- match.arg(access_type)
approval_prompt <- match.arg(approval_prompt)
prompt <- match.arg(prompt)
ns <- session$ns

accessToken <- shiny::reactive({
Expand All @@ -133,7 +133,7 @@ googleAuth <- function(input, output, session,
shiny::a(login_text,
href = gar_shiny_getAuthUrl(gar_shiny_getUrl(session),
access_type = access_type,
approval_prompt = approval_prompt),
prompt = prompt),
class=login_class,
role="button"))
} else {
Expand Down
6 changes: 3 additions & 3 deletions R/shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ gar_shiny_getAuthUrl <-
client.secret = getOption("googleAuthR.webapp.client_secret"),
scope = getOption("googleAuthR.scopes.selected"),
access_type = c("online","offline"),
approval_prompt = c("auto","force")) {
prompt = c("consent", "select_account", "both", "none")) {

access_type <- match.arg(access_type)
approval_prompt <- match.arg(approval_prompt)
prompt <- match.arg(prompt)

scopeEnc <- paste(scope, sep='', collapse=' ')

Expand All @@ -72,7 +72,7 @@ gar_shiny_getAuthUrl <-
scope = scopeEnc,
state = state,
access_type = access_type,
approval_prompt = approval_prompt))
prompt = prompt))
myMessage("Auth Token URL: ", url, level=2)
url
}
Expand Down
6 changes: 3 additions & 3 deletions man/googleAuth.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e0f9b19

Please sign in to comment.