convert_token_to_envvar: Convert token to environment variable

View source: R/auth.R

convert_token_to_envvarR Documentation

Convert token to environment variable

Description

Convert token to environment variable

Usage

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

Value

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)

rtoot documentation built on May 29, 2024, 2:14 a.m.