Module auth/storage/token-storage

Legacy Token Storage Persistence Module

Provides a backward-compatible interface for token management operations, previously used for persistent token storage but now operating as an in-memory compatibility layer.

Features:

  • Memory-only token storage for backward compatibility
  • Complete token management API (store, retrieve, remove)
  • Consistent key naming for token-related data
  • Type-safe token value retrieval
  • Clean token storage clearing functionality

This module is primarily maintained for compatibility with existing code that relies on its API. New code should use the more specialized token management modules (token-operations.ts, token-state.ts) that provide more robust and secure storage mechanisms.

This module is maintained for backward compatibility only. New code should use the modular token services directly from token-operations.ts.

Variables

ACCESS_TOKEN_KEY
REFRESH_TOKEN_KEY
TOKEN_EXPIRY_KEY

Functions

readTokenStorage
writeTokenStorage
storeTokenValue
retrieveTokenValue
removeTokenValue
clearTokenStorage