{"library":"poe-oauth","title":"poe-oauth","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install poe-oauth"],"cli":null},"imports":["import { createOAuthClient } from 'poe-oauth'","import { checkAuth } from 'poe-oauth'","import type { OAuthResult } from 'poe-oauth'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createOAuthClient, checkAuth } from 'poe-oauth';\n\n// Start OAuth flow\nconst client = createOAuthClient({\n  clientId: process.env.POE_CLIENT_ID ?? '',\n  openBrowser: async (url) => { console.log('Open:', url); },\n  readLine: async () => { return prompt('Paste token:') ?? ''; }\n});\n\nconst authorization = await client.authorize();\nconsole.log('Authorization URL:', authorization.authorizationUrl);\nconst result = await authorization.waitForResult();\nconsole.log('API Key:', result.apiKey);\n\n// Verify token\nconst identity = await checkAuth({ apiKey: result.apiKey });\nconsole.log('Identity:', identity);","lang":"typescript","description":"Demonstrates full OAuth flow: creating client, authorizing, waiting for callback, and verifying the API key.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}