kriasoft/oauth-callback

Lightweight OAuth 2.0 authorization code capture for CLI tools & desktop apps. Works with Node.js, Deno, Bun. MCP SDK ready.

50
/ 100
Established

Provides a localhost-only HTTP server that automatically captures OAuth callbacks and exchanges authorization codes, with built-in browser launching via the `open` package. Includes dual APIs—a simple `getAuthCode()` function for direct use and MCP SDK-compatible `browserAuth()` provider with configurable token storage (in-memory or file-based). Supports AbortSignal cancellation, custom HTML templates with placeholder interpolation, and comprehensive error handling across Node.js, Deno, and Bun with zero external dependencies beyond optional `open`.

Used by 2 other packages. Available on npm.

Maintenance 10 / 25
Adoption 7 / 25
Maturity 18 / 25
Community 15 / 25

How are scores calculated?

Stars

11

Forks

4

Language

TypeScript

License

MIT

Last pushed

Jan 25, 2026

Commits (30d)

0

Reverse dependents

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/mcp/kriasoft/oauth-callback"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.