• Sets the in-memory access token

    Updates the access token in memory for fast retrieval by future operations. This function does not persist the token to storage - that responsibility belongs to the token operations module.

    Parameters

    • token: null | string

      Access token to store in memory, or null to clear

    Returns void

    // Update token in memory after refresh
    setAccessTokenState(newAccessToken);
    export function setAccessTokenState(token: string | null): void {
    currentAccessToken = token;
    }