3.0.0 • Published 2 years ago

@lytics/sdk v3.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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 }
});