UNPKG

@snehal96/unimail

Version:

Unified email fetching & document extraction layer for modern web apps

26 lines (25 loc) 805 B
import { ITokenStorage, TokenData } from '../interfaces.js'; /** * Simple in-memory implementation of token storage. * Note: This is NOT suitable for production use as tokens are lost when the process exits. * It's intended for testing and demonstration purposes only. */ export declare class MemoryTokenStorage implements ITokenStorage { private tokenStore; /** * Save tokens for a user */ saveTokens(userId: string, tokens: TokenData): Promise<void>; /** * Retrieve tokens for a user */ getTokens(userId: string): Promise<TokenData | null>; /** * Update tokens for a user */ updateTokens(userId: string, tokens: TokenData): Promise<void>; /** * Delete tokens for a user */ deleteTokens(userId: string): Promise<boolean>; }