tests/testthat/_snaps/secret.md

obfuscated strings are hidden

Code
  x <- obfuscated("abcdef")
  x
Output
  obfuscated("abcdef")
Code
  str(x)
Output
   obfuscated("abcdef")

can coerce to a key

Code
  as_key("ENVVAR_THAT_DOESNT_EXIST")
Condition
  Error:
  ! Can't find envvar ENVVAR_THAT_DOESNT_EXIST
Code
  as_key(1)
Condition
  Error:
  ! `key` must be a raw vector containing the key, a string giving the name of an env var, or a string wrapped in `I()` that contains the base64url encoded key.


r-lib/httr2 documentation built on Jan. 11, 2025, 10:21 a.m.