OAuth client and auth verification for the Poe API (v0.0.6). Provides PKCE-based OAuth flow with local callback server and API key validation. Ships TypeScript types. Release cadence: active development within the poe-code monorepo (v3.x branch). Differentiators: minimal dependencies, built-in landing page customization, and keyless identity verification via checkAuth. No alternative standalone packages exist for Poe OAuth.
npm install poe-oauthVerified import paths — ran on the pinned version, not inferred.
Demonstrates full OAuth flow: creating client, authorizing, waiting for callback, and verifying the API key.
Always provide both callbacks, even if one is a no-op for your use case.
If overriding one endpoint, override both to avoid mismatched flow.
Use await client.authorize().waitForResult() instead of awaiting client.authorize() directly.
import { createOAuthClient } from 'poe-oauth'npm install poe-oauth and use ESM (import syntax).
Provide an async function that returns a string for readLine.
Ensure the token URL is called with the correct code_verifier; avoid modifying the authorization code.
No dependency data recorded yet.