Getting started

Getting started

Requirements
Get a Secrecy (opens in a new tab) account
Use Node.js >= 16.3

Install

npm install @secrecy/lib

Import

import { getSecrecyClient, login, setup } from '@secrecy/lib';

Setup

This step can be skipped if you do not intend to use encryption methods.

await setup();

Get the client

To retrieve the client, call the getSecrecyClient(session) function.

const client = getSecrecyClient(session?: boolean | undefined)