@genation/sdk-core
v0.4.2
Published
Shared types, utilities, and HTTP client for Genation SDK.
Readme
@genation/sdk-core
Shared types, utilities, and HTTP client for Genation SDK.
Installation
npm install @genation/sdk-coreWhat is included
| Export | Description |
|--------|-------------|
| Types | User, License, LicensePlan, Consumable, ConsumablePlan, Session, TokenSet, AuthEvent... |
| Constants | Auth URLs, JWT verify URLs, Feature Flag API URLs for dev/prod |
| HTTP Client | Base HTTP client with authentication headers |
Usage
import {
User,
License,
Consumable,
Session,
DEFAULT_AUTH_URL,
DEFAULT_FF_API_URL,
} from "@genation/sdk-core";Note: This package is typically installed as a dependency of
@genation/sdk-clientor@genation/sdk-server. You rarely need to install it directly unless you are building a custom SDK.
Related Packages
| Package | Description |
|---------|-------------|
| @genation/sdk-client | OAuth client for browser/SPA |
| @genation/sdk-server | OAuth client for Node.js server |
License
MIT
