A Node.js API client for Zalter Identity service
npm install @zalter/identityAn ESM and CJS software developer kit meant to be used with the Identity API services offered by Zalter.
Node.js version 15 or higher. For security reasons the latest version is preferred.
Use npm to install the @zalter/identity node module:
``bash`
npm install @zalter/identity
`javascript
import { IdentityClient } from '@zalter/identity';
const config = {
projectId: '
credentials: '
};
const identityClient = new IdentityClient(config);
const keyId = '
try {
const res = await identityClient.getPublicKey(keyId);
console.log(res);
} catch (err) {
console.error(err);
}
// Destroy the client
identityClient.destroy();
``