tests/testthat/_snaps/gh_whoami.md

whoami errors with bad/absent PAT

Code
  gh_whoami(.token = "")
Message
  No personal access token (PAT) available.
  Obtain a PAT from here:
  https://github.com/settings/tokens
  For more on what to do with the PAT, see ?gh_whoami.
Code
  gh_whoami(.token = NA)
Condition
  Error in `gh()`:
  ! GitHub API error (401): Requires authentication
  i Read more at <https://docs.github.com/rest/reference/users#get-the-authenticated-user>
Code
  gh_whoami(.token = "blah")
Condition
  Error in `gh()`:
  ! GitHub API error (401): Bad credentials
  i Read more at <https://docs.github.com/rest>


Try the gh package in your browser

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

gh documentation built on March 7, 2023, 5:33 p.m.