convert_token_to_envvar function

Convert token to environment variable

Convert token to environment variable

convert_token_to_envvar(token, clipboard = TRUE, verbose = TRUE)

Arguments

  • token: bearer token, either public or user level
  • clipboard: logical, whether to export the token to the clipboard
  • verbose: logical whether to display messages

Returns

Token (in environment variable format), invisibily

Examples

## Not run: x <- auth_setup("mastodon.social", "public") envvar <- convert_token_to_envvar(x) envvar ## End(Not run)
  • Maintainer: David Schoch
  • License: MIT + file LICENSE
  • Last published: 2024-10-30