tests/testthat/_snaps/auth.md

bearer token doesn't accidentally expose secrets

Code
  rtweet_app("abc")
Output
  <Twitter bearer token>

find auth errors politely

Code
  find_auth(1:10)
Condition
  Error:
  ! Unrecognised input to `auth`
Code
  find_auth("not-present")
Condition
  Error:
  ! Can't find saved auth with name 'not-present'

default_cached_auth() handles 0, 1, and n saved

Code
  default_cached_auth()
Condition
  Error in `default_cached_auth()`:
  ! No default authentication found. Please call `auth_setup_default()`
Code
  default_cached_auth()
Condition
  Error in `default_cached_auth()`:
  ! No default authentication found. Pick existing auth with:
  * auth_as('test1')
  * auth_as('test2')


Try the rtweet package in your browser

Any scripts or data that you put into this service are public.

rtweet documentation built on Oct. 17, 2023, 1:11 a.m.