Skip to content

Commit

Permalink
perf: make APP_REDIRECT_URL as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
danlu1 committed Apr 10, 2023
1 parent 85fd8dc commit 0bf7dc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/mod-synapse-oauth.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ authorization_url <- NULL
#' @param pkgname default R .onLoad() parameter
.onLoad <- function(libname, pkgname) {
synapse <<- reticulate::import("synapseclient", delay_load = TRUE)
if (!interactive()) {
#if (!interactive()) {
setup_global_oauth_vars(
app_url = get_golem_config("app_url"),
app_url = Sys.getenv("APP_REDIRECT_URL"),
client_name = Sys.getenv("client_name"),
client_id = Sys.getenv("client_id"),
client_secret = Sys.getenv("client_secret")
)
}
#}
}

#' @title Synapse Oauth Module
Expand Down

0 comments on commit 0bf7dc1

Please sign in to comment.