Function isTokenValid

  • Check if a cached token is still valid (with 30s buffer).

    Parameters

    Returns boolean

    true if the token expires more than 30 seconds in the future.