• Sets the in-memory refresh token

    Updates the refresh 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

      Refresh token to store in memory, or null to clear

    Returns void

    // Update refresh token in memory after authentication
    setRefreshTokenState(newRefreshToken);
    export function setRefreshTokenState(token: string | null): void {
    currentRefreshToken = token;
    }