Writes token data to memory storage
Updates the in-memory token storage with the provided data, merging it with any existing data rather than replacing it completely.
Token data to write to storage
// Update multiple token values at oncewriteTokenStorage({ [ACCESS_TOKEN_KEY]: "new-access-token", [TOKEN_EXPIRY_KEY]: Date.now() + 3600000}); Copy
// Update multiple token values at oncewriteTokenStorage({ [ACCESS_TOKEN_KEY]: "new-access-token", [TOKEN_EXPIRY_KEY]: Date.now() + 3600000});
Use setTokens from token-operations instead
export function writeTokenStorage(data: TokenStorage): void { Object.assign(memoryTokenStorage, data);} Copy
export function writeTokenStorage(data: TokenStorage): void { Object.assign(memoryTokenStorage, data);}
Writes token data to memory storage
Updates the in-memory token storage with the provided data, merging it with any existing data rather than replacing it completely.