signin: Attempt to sign in to an authenticated op session

Description Usage Arguments Details Value

Description

Attempt to sign in to an authenticated op session

Usage

1
signin(subdomain = "my")

Arguments

subdomain

domain for logging into 1Password. This can be found in the URL you use to login via a web interface, e.g. for my.1password.com/signin the subdomain is my, which is set as default.

Details

Requests the 1Password Master Password. At no point is this saved to even a temporary variable. This is only required for signin, after which a session token will be used to communicate with 1Password. The session token is validated on the server and lasts 30 minutes, after which you will again need to sign in.

The session token is not the actual hash, but merely a reference to an encrypted token in the user's home directory (in e.g. ~/.op/config).

This sets an environment variable OP_SESSION_X (where X is the subdomain) and an option OP_SUBDOMAIN.

Value

if successful, the login token, invisibly.


jonocarroll/opr documentation built on May 29, 2019, 5:40 a.m.