@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
Details
npm
2026-05-28 19:57:36 +00:00
55
UNLICENSED
7.9 KiB
Assets (1)
sdk-0.1.0.tgz 7.9 KiB
Versions (5) View all
0.5.0 2026-06-16
0.4.0 2026-06-16
0.3.0 2026-06-06
0.2.0 2026-06-02
0.1.0 2026-05-28