Description Usage Arguments Value See Also
View source: R/googleAuthR_auto_auth.R
This helper function lets you use environment variables to auto-authenticate on package load, intended for calling by gar_attach_auto_auth
1 2 3 | gar_auto_auth(required_scopes, new_user = FALSE, no_auto = FALSE,
environment_var = "GAR_AUTH_FILE",
travis_environment_var = "TRAVIS_GAR_AUTH_FILE")
|
required_scopes |
Required scopes needed to authenticate - needs to match at least one |
new_user |
If TRUE, reauthenticate via Google login screen |
no_auto |
If TRUE, ignore auto-authentication settings |
environment_var |
Name of environment var that contains auth file path |
travis_environment_var |
Name of Travis environment var that contains auth file path The authentication file can be a You can use this in your code to authenticate from a filelocation specified in in file, but it is mainly intended to be called on package load via gar_attach_auto_auth.
|
an OAuth token object, specifically a
Token2.0
, invisibly
Help files for .onAttach
Other authentication functions: gar_attach_auto_auth
,
gar_auth_service
, gar_auth
,
gar_gce_auth
,
get_google_token
,
is_legit_token
, token_exists
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.