0.2.0 • Published 11 months ago

@sigmacomputing/node-embed-sdk v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Sigma Node.js Embed SDK

This package provides Node.js utilities for working with Sigma Computing's Embed API.

Getting Started

To use the node-embed-sdk in your project, you can install it using your node package manager.

Using npm:

npm install @sigmacomputing/node-embed-sdk

yarn:

yarn add @sigmacomputing/node-embed-sdk

pnpm:

pnpm add @sigmacomputing/node-embed-sdk

Features

Token Encryption and Decryption

The SDK provides utilities for encrypting and decrypting OAuth tokens using AES-256-GCM encryption:

import { encrypt, decrypt } from '@sigmacomputing/node-embed-sdk';

// Encrypt an OAuth token
const encryptedToken = encrypt(
  'your-embed-secret',
  'your-oauth-token'
);

// Decrypt an encrypted token
const decryptedToken = decrypt(
  'your-embed-secret',
  encryptedToken
);
0.2.0

11 months ago