@zalter/identity
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Zalter Identity - Node.js SDK

An ESM and CJS software developer kit meant to be used with the Identity API services offered by Zalter.

Requirements

Node.js version 15 or higher. For security reasons the latest version is preferred.

Installation

Use npm to install the @zalter/identity node module:

npm install @zalter/identity

Usage

import { IdentityClient } from '@zalter/identity';

const config = {
  projectId: '<your-project-id>',
  credentials: '<your-credentials>' // your credentials
};

const identityClient = new IdentityClient(config);

const keyId = '<a-signing-key-id>';

try {
  const res = await identityClient.getPublicKey(keyId);
  console.log(res);
} catch (err) {
  console.error(err);
}

// Destroy the client
identityClient.destroy();

Documentation

Zalter Docs Website

Package Sidebar

Install

npm i @zalter/identity

Homepage

zalter.com

Weekly Downloads

0

Version

1.1.2

License

none

Unpacked Size

23.9 kB

Total Files

15

Last publish

Collaborators

  • zalter
  • alexandru.comanescu