Print all currently set API keys.

showAPIKeys(mask = TRUE)

Arguments

mask

Logical specifying whether to mask key values.

Value

No return value. Called for side effects.

Details

By default, key values are masked so that they are not exposed in console output or logs: only the first four characters of keys longer than eight characters are shown. Use mask = FALSE to print complete keys, or getAPIKey() to retrieve them programmatically.

Examples

setAPIKey("exampleProvider", "abcd1234efgh5678")

# Keys are masked by default
showAPIKeys()
#> List of 1
#>  $ exampleProvider: chr "abcd****"
showAPIKeys(mask = FALSE)
#> List of 1
#>  $ exampleProvider: chr "abcd1234efgh5678"

# Remove the example key
setAPIKey("exampleProvider", NULL)