Skip to content

gitcreds_get() caches credentials in environment variables. gitcreds_cache_envvar() calculates the environment variaable name that is used as the cache, for a URL.

Usage

gitcreds_cache_envvar(url)

Arguments

url

Character vector of URLs, they may contain user names and paths as well. See details below.

Value

Character vector of environment variables.

See also

Examples

gitcreds_cache_envvar("https://github.com")
#> [1] "GITHUB_PAT_GITHUB_COM"
gitcreds_cache_envvar("https://api.github.com/path/to/endpoint")
#> [1] "GITHUB_PAT_GITHUB_COM"
gitcreds_cache_envvar("https://[email protected]")
#> [1] "GITHUB_PAT_JANE_AT_GITHUB_COM"
gitcreds_cache_envvar("https://another.site.github.com")
#> [1] "GITHUB_PAT_ANOTHER_SITE_GITHUB_COM"
OSZAR »