Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding gm_user() #114

Closed
jennybc opened this issue Aug 13, 2019 · 0 comments
Closed

Consider adding gm_user() #114

jennybc opened this issue Aug 13, 2019 · 0 comments

Comments

@jennybc
Copy link
Member

jennybc commented Aug 13, 2019

I find a function that reports on the current user (token, really) to be very useful.

Some APIs have a useful user or about endpoint. Drive does, so drive_user() exposes:

https://github.com/tidyverse/googledrive/blob/master/R/drive_user.R

Some APIs do not have a user endpoint. BigQuery does not, so bq_user() falls back to some barebones token inspection from gargle:

https://github.com/r-dbi/bigrquery/blob/306023a57c62bb7fe7c370ffb4f500e3dc6b74c2/R/bq-auth.R#L201-L207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant