View source: R/credentials_service_account.R
check_is_service_account | R Documentation |
This pre-checks information provided to a high-level, user-facing auth
function, such as googledrive::drive_auth()
, before passing the user's
input along to token_fetch()
, which is designed to silently swallow errors.
Some users are confused about the difference between an OAuth client and a
service account and they provide the (path to the) JSON for one, when the
other is what's actually expected.
check_is_service_account(path, hint, call = caller_env())
path |
JSON identifying the service account, in one of the forms
supported for the |
hint |
The relevant function to call for configuring an OAuth client. |
call |
The execution environment of a currently running
function, e.g. You only need to supply Can also be For more information about error calls, see Including function calls in error messages. |
Nothing. Exists purely to throw an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.