check if a token is expired based on given UTC time in seconds.
Parameters
expiresOn: string
offset: number
Returns boolean
StaticnowSeconds
nowSeconds(): number
return the current time in Unix time (seconds).
Returns number
StaticwasClockTurnedBack
wasClockTurnedBack(cachedAt): boolean
If the current time is earlier than the time that a token was cached at, we must discard the token
i.e. The system clock was turned back after acquiring the cached token
Utility class which exposes functions for managing date and time operations.