open-index/open-npm huggingface dataset:
npm package: @genation/sdk-core
Description: Shared types, utilities, and HTTP client for Genation SDK.
Latest version: 0.4.2

# @genation/sdk-core

Shared types, utilities, and HTTP client for Genation SDK.

## Installation

```bash
npm install @genation/sdk-core
```

## What 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

```typescript
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-client` or `@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