• Stores a token value in memory storage

    Sets a single token-related value in the memory storage. This is a more granular alternative to writeTokenStorage when only one value needs to be updated.

    Parameters

    • key: string

      Token key to store

    • value: TokenValue

      Token value to store

    Returns void

    // Store just the access token
    storeTokenValue(ACCESS_TOKEN_KEY, "new-access-token");

    Use setTokens from token-operations instead

    export function storeTokenValue(key: string, value: TokenValue): void {
    memoryTokenStorage[key] = value;
    }