setup_op: Initialize vault and device

Description Usage Arguments Details Value

View source: R/onepass.R

Description

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.

Usage

1
2
3
4
5
6
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

Details

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

Value

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


jonlinca/onepass documentation built on June 3, 2021, 9:11 a.m.