<p align="center">
  <img src="https://raw.githubusercontent.com/Analytics-Consulting/authentication-and-authorization/refs/heads/feature/userinfo/authlink-branding/images/logo.svg?token=GHSAT0AAAAAACYAFX6MKEAWTCA56POKQMEC2CCXSHA" alt="@authlink/client" width="150" />
</p>

<h1 align="center">@authlink/client</h1>

<p align="center">
  The official TypeScript SDK for integrating with the Authlink Identity Provider.
</p>

## 🚀 Getting Started

### Install

```bash
npm install @authlink/client
```

### Usage

```typescript
import { IdentityProviderClient } from "@authlink/client";

const client = new IdentityProviderClient("https://authlink.co.za");
```

## 📚 Documentation

Coming soon: [https://docs.authlink.co.za](https://docs.authlink.co.za)

## 🛠 Features

- Token exchange via Authorization Code and Refresh Token
- Session management
- Type-safe APIs
- Works in browser and Node.js

## 🧪 Development

```bash
npm install
npm run build
```

## 📝 License

MIT