Skip to contents

This function expects that there is an encrypted file in RDS format with an OAuth token, and an environmental variable with the key to decrypt the token.

Usage

decrypt_gdrive_token(
  token_file = ".secrets/gdrive-token.rds",
  decrypt_env_var = "GDRIVE_KEY"
)

Arguments

token_file

filepath to the encrypted token file

decrypt_env_var

name of the environmental variable that is the decryption key

Value

an OAuth token