@verta/sdk (0.1.0)
Published 2026-05-28 19:57:36 +00:00 by forgeadmin
Installation
@verta:registry=npm install @verta/sdk@0.1.0"@verta/sdk": "0.1.0"About this package
@verta/sdk
Framework-agnostic client SDK for the Verta identity service — auth (Google / Telegram), authorized fetch with one-shot refresh-on-401, permission checks, billing (plans / entitlements / subscription / checkout) and telemetry, plus pluggable storage adapters (browser memory / localStorage / cookie session / Tauri keychain).
Renamed from @qusavin/verta-sdk; ships compiled ESM + type declarations.
Install
pnpm add @verta/sdk # requires the @verta registry in .npmrc (see repo root)
Use
import { createAuthClient, browserLocalStorage } from "@verta/sdk";
const client = createAuthClient({
baseUrl: "https://identity.vertaspace.com",
appId: "your-app",
storage: browserLocalStorage(),
});
const res = await client.authorizedFetch("/v1/whatever");
Build & test
pnpm --filter @verta/sdk build
pnpm --filter @verta/sdk test
Dependencies
Development dependencies
| ID | Version |
|---|---|
| typescript | ^5.6.2 |
| vitest | ^2.1.3 |