Thank you for being patient! We're working hard on resolving the issue
All API access requires a personal access token (PAT). Tokens have the same permissions as your user account.
Tokens start with lona_pat_ and are long-lived.
The recommended pattern is to store your token in an environment variable:
export LONA_ACCESS_TOKEN="lona_pat_..."
Then reference it when creating the client:
import { LonaSdk, SheetPlatform } from "@tento-lona";
const client = new LonaSdk.Client({
accessToken: process.env.LONA_ACCESS_TOKEN,
storage: localStorage,
platform: SheetPlatform.TEST,
});
You can also pass the token directly:
const client = new LonaSdk.Client({
accessToken: "lona_pat_...",
storage: localStorage,
platform: SheetPlatform.TEST,
});
.env files or secret
managers.LonaSdk.Client