@lytics/sdk
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Lytics SDK

A TypeScript client for the Lytics API.

Managing Token and AID

The SDK is decoupled from the particulars about how the auth token is managed.

It’s possible to auth using an object literal:

const session = await auth({ token: "...", aid: "12" });

Here is an example of gluing to the sdk to node:

const session = await auth({ 
  get token() { return process.env.LIOTOKEN },
  get aid() { return process.env.LYTICS_AID }
});

Readme

Keywords

none

Package Sidebar

Install

npm i @lytics/sdk

Weekly Downloads

2

Version

3.0.0

License

MIT

Unpacked Size

1.9 MB

Total Files

15

Last publish

Collaborators

  • lyticsnpm