The MalTokenResponse whose expires_in to evaluate.
Optionalnow: number
The current time in milliseconds since the Unix epoch.
The moment the access token expires.
A TypeError when expires_in is zero, negative, NaN, or infinite. These values cannot produce a valid expiry and would break proactive-refresh scheduling.
getMalTokenExpiry computes the absolute expiry time of a MalTokenResponse.
It adds
expires_infrom the response returned by getMalAccessToken or refreshMalAccessToken to the supplied clock value, so callers can schedule refresh before the token held inMalCredentialsexpires.