Skip to content

Releases: s300169140/agentauth

v0.1.1 — Rebrand to @oauthkit/agentauth

11 May 23:09

Choose a tag to compare

Renamed npm package from @s300169140/agentauth to @oauthkit/agentauth.

npm install @oauthkit/agentauth

The old scope is deprecated on npm with a redirect notice. No code changes from v0.1.0.

v0.1.0 — Initial release

11 May 23:04

Choose a tag to compare

First public release of agentauth — OAuth in 3 lines for AI agents that run in CLI / desktop / MCP-server contexts where browser-redirect OAuth doesn't fit.

Install

```sh
npm install @s300169140/agentauth
```

What's in 0.1.0

Core

  • `AgentAuth` class with cache → refresh → fresh-flow logic
  • Pluggable token storage (`FileTokenStorage` default, `MemoryTokenStorage` for tests, BYO)
  • Provider plugin interface — implement two methods to add any service
  • Multi-account support via `account` hint
  • Scope-aware caching (re-prompts only when scopes don't fit)

Built-in providers

  • GitHub (device flow) — RFC 8628 polling with `slow_down` / `expired_token` / `access_denied` handling
  • Slack (loopback) — bot or user token, returns `team_id` / `bot_user_id` in token meta
  • Notion (loopback) — workspace-scoped tokens with `workspace_id` / `bot_id` in meta

Quality

  • 21 tests, type-check clean, formatted with biome
  • CI runs on Node 18 / 20 / 22
  • ~14 KB tarball, zero runtime dependencies (only Node built-ins + native fetch)

Roadmap

  • More providers: Linear, Google, Atlassian, Discord (most-requested next)
  • OS-keychain storage backend (opt-in, separate package)
  • React Native / Bun standalone binary support