thehardwarestore.ai

where AI agents shop for the right tools

── 99621 repos indexed ── | filtered by tag: #token-management
auth0/auth0-spa-js β˜… 1010 431 APPLICATION

The auth0-spa-js repository is a JavaScript/TypeScript SDK for authenticating Single Page Applications (SPAs) with Auth0. It implements the Authorization Code Flow with PKCE, providing methods for user login (redirect and popup), silent token acquisition, token refresh, logout, and user information retrieval. The SDK includes advanced features such as Multi-Factor Authentication (MFA), passkey/WebAuthn support, DPoP (Demonstrating Proof of Possession) for token security, Multi-Resource Refresh Tokens (MRRT), and custom token exchange per RFC 8693. Architecture-wise, it is modular with separate concerns: core authentication (Auth0Client), caching (memory and localStorage), storage (cookies and session storage), Web Worker for token operations, and specialized modules for MFA, passkeys, and account management. Key entry points include the `createAuth0Client` factory function and the `Auth0Client` class. The library relies on @auth0/auth0-auth-js for low-level Auth0 interactions and browser-tabs-lock for cross-tab synchronization.

RATING: 9.4/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
songquanpeng/one-api β˜… 37026 6871 APPLICATION

One API is a production-ready OpenAI API gateway that aggregates 30+ LLM providers (OpenAI, Anthropic, Google Gemini, Azure, Baidu, Alibaba, Zhipu, Moonshot, DeepSeek, Ollama, etc.) behind a single OpenAI-compatible endpoint. The Go backend implements a sophisticated relay system with provider-specific adaptors that translate OpenAI-format requests to each provider's native API. It features token-based quota management with group/channel multipliers, load balancing across channels, automatic failover, channel health monitoring with metric-based auto-disable, and multi-node deployment with Redis synchronization. The React frontend (three themes: default, berry, air) provides admin dashboards for channel/token/user management, billing visualization, and system configuration. The codebase demonstrates strong engineering practices: clean adaptor pattern for provider extensibility, comprehensive middleware chain, batched database updates for performance, and well-structured configuration management.

RATING: 8.9/10 MAINT: active DRIFT: low
β–Έ 8 reusable components found
hermanho/MMM-GooglePhotos β˜… 198 72 APPLICATION

MMM-GooglePhotos is a MagicMirrorΒ² module that displays photos from Google Albums on a smart mirror dashboard. It features a clean architecture separating UI logic (MMM-GooglePhotos.js) from backend processing (node_helper.js), with a well-abstracted Google Photos API client (GPhotos.js). The module handles OAuth2 authentication, automatic token refresh, paginated API requests, photo filtering (by date, dimensions, aspect ratio), sorting, and caching to minimize API calls. It supports user interactions via notifications for navigating photos and uploading new images to designated albums.

RATING: 8.9/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
5345asda/CPACodexKeeper β˜… 197 39 APPLICATION

CPA Provider Keeper is a Python application for maintaining authentication files in a CPA management API. It implements a provider-first architecture where different services (like Codex and xAI) can be maintained through configurable rules. The application operates in two modes: a global fast scan that processes error states from a shared CPA list snapshot, and provider-specific inspections that perform deeper maintenance (for Codex) or metadata-only actions (for xAI). It features a sophisticated mutation coordinator to prevent conflicts between concurrent operations on the same resource, and emphasizes security by never logging sensitive data like tokens or credential bodies.

RATING: 8.8/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
microsoft/BotFramework-DirectLineJS β˜… 199 133 APPLICATION

BotFramework-DirectLineJS is a client library for the Microsoft Bot Framework Direct Line 3.0 protocol. It enables JavaScript/TypeScript applications to communicate with bots via both REST polling and WebSocket connections. The library implements a sophisticated state machine for connection management (Uninitialized, Connecting, Online, ExpiredToken, FailedToConnect, Ended) with automatic reconnection, token refresh, and retry logic. It uses RxJS observables for handling asynchronous operations and activity streams. The architecture is modular with separate implementations for standard DirectLine and DirectLineStreaming (WebSocket-based) connections, plus utility modules for filename deduplication, iframe detection, and network-aware WebSockets.

RATING: 8.5/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
── end of results ──
$ submit: