@lytics/sdk
v3.0.0
Published
A TypeScript client for the Lytics API.
Downloads
3
Readme
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 }
});