Updates the token expiration timestamp in memory for future validity checks.
This function does not persist the timestamp to storage - that responsibility
belongs to the token operations module.
Parameters
timestamp: null|number
Token expiry timestamp (milliseconds since epoch) to store in memory, or null to clear
Returns void
Example
// Calculate and set expiry timestamp constexpiryMs = Date.now() + (expiresIn * 1000); setTokenExpiryState(expiryMs);
Source
exportfunctionsetTokenExpiryState(timestamp: number | null): void { tokenExpiryTimestamp = timestamp; }
Sets the in-memory token expiry timestamp
Updates the token expiration timestamp in memory for future validity checks. This function does not persist the timestamp to storage - that responsibility belongs to the token operations module.