Skip to content

Consider adding gm_user() #114

@jennybc

Description

@jennybc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions