@dopplerhq/universal-import-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

npm bundle size

@dopplerhq/universal-import-core

This package contains the core logic that is leveraged by the @dopplerhq/universal-import-react package. It is responsible for:

  • Fetching the latest public encryption key
  • Encrypting the payload with the public key via sealed boxes
  • Triggering the Universal Import flow so that the user can import the secret
  • Exposing the trigger function to trigger the Universal Import flow without leveraging one of our frontend packages

Installation

npm install @dopplerhq/universal-import-core

Usage

Add the following to your code to leverage this package via the trigger(...) function:

import { trigger } from "@dopplerhq/universal-import-core";
//...
await trigger({ secretName: "STRIPE_KEY", secretValue: "sk_test_12345" });

Readme

Keywords

none

Package Sidebar

Install

npm i @dopplerhq/universal-import-core

Weekly Downloads

11

Version

1.0.3

License

Apache-2.0

Unpacked Size

17.2 kB

Total Files

11

Last publish

Collaborators

  • doppler-admin
  • apazzolini-doppler
  • bvallelunga
  • dopplerhq-bot