If the device does not have an environment variable, creates one for the session. This can be saved within the .Renviron file to reduce new device alerts.

setup_op(
  domain,
  email,
  masterpassword = rstudioapi::askForPassword("Please enter your Master Password"),
  secretkey = rstudioapi::askForPassword("Please enter your Secret Key")
)

Arguments

domain

Full domain URL of your vault

email

Email address used on 1Password

masterpassword

Used to unlock the vault

secretkey

Used for enabling 1Password on new devices

Value

1Password session object, to be used for interacting with vault

Details

Saves a token as an environment variable for the session as OP_SESSION_(subdomain)