R/get_bws_server_url.R

Defines functions get_bws_server_url

Documented in get_bws_server_url

#' Retrieve BWS Server URL from Environment
#'
#' Retrieves the `BWS_SERVER_URL` from environment variables. This URL is
#' used to define the Bitwarden Secrets Manager server endpoint.
#'
#' @return A character string containing the BWS server URL.
get_bws_server_url <- function() {
  bws_server_url <- Sys.getenv("BWS_SERVER_URL")
  if (bws_server_url == "") {
    stop("No BWS_SERVER_URL provided or set as environment variable.")
  }
  return(bws_server_url)
}

Try the vvbitwarden package in your browser

Any scripts or data that you put into this service are public.

vvbitwarden documentation built on April 12, 2025, 1:15 a.m.