r-lib / gh

Minimalistic GitHub API client in R
https://gh.r-lib.org
Other
223 stars 52 forks source link

Use an S3 class and print method for PATs #125

Closed jennybc closed 4 years ago

jennybc commented 4 years ago

I propose we introduce an S3 class for PATs, just so we can give them a coy print method, i.e. not reveal the whole PAT.

I think this is probably "worth it" in terms of helping users and maybe even us to not leak a PAT via, e.g., rendered documentation or a log file.