Reads token data from memory storage
Retrieves a copy of the entire token storage object, containing all token-related data currently in memory. The returned object is a shallow clone to prevent direct modification of the storage.
Record containing stored token data or empty object if no data exists
// Check all token data at onceconst tokenData = readTokenStorage();if (tokenData[ACCESS_TOKEN_KEY]) { // We have an access token} Copy
// Check all token data at onceconst tokenData = readTokenStorage();if (tokenData[ACCESS_TOKEN_KEY]) { // We have an access token}
Use getAccessToken, getRefreshToken, etc. from token-operations instead
export function readTokenStorage(): TokenStorage { return { ...memoryTokenStorage };} Copy
export function readTokenStorage(): TokenStorage { return { ...memoryTokenStorage };}
Reads token data from memory storage
Retrieves a copy of the entire token storage object, containing all token-related data currently in memory. The returned object is a shallow clone to prevent direct modification of the storage.