auth_save: Save an authentication mechanism for use in a future session

Description Usage Arguments See Also Examples

View source: R/auth.R

Description

Use auth_save() with auth_as() to avoid repeatedly entering app credentials, making it easier to share auth between projects. Use auth_list() to list all saved credentials.

Usage

1
2
3

Arguments

auth

One of rtweet_app(), rtweet_bot(), or rtweet_user().

name

Cache name to use.

See Also

Other authentication: auth_as(), auth_get(), auth_setup_default(), rtweet_user()

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# save app auth for use in other sessions
auth <- rtweet_app()
auth_save(auth, "my-app")

# later, in a different session...
auth_as("my-app")

## End(Not run)

mkearney/rtweet documentation built on Sept. 29, 2021, 12:01 p.m.