1Password client.

import { OnePasswordClient } from '@reuters-graphics/graphics-bin';

const client = new OnePasswordcClient();

const secret = client.getSecret('op://vault/item/field');

Note: In CI environments, the service account access token required to use this client should be set as the environment variable OP_SERVICE_ACCOUNT_TOKEN. In local environments, users will be prompted to save the token to a dotfile in the user's home directory.

Constructors

Methods

Constructors

Methods

  • Retrieve a secret from 1password using a secret reference URI.

    Parameters

    • secretReferenceUri: string

      1Password secret reference URI in the form of op://vault/item/field

    Returns Promise<string>

    The resolved secret