TokenValidator typedef
A validator function that determines if cached credentials are still valid.
The validator receives the original request options and cached response, and should
return true if the cached credentials are still valid for the given request.
The default validator checks JWT expiration using isResponseExpired.
Implementation
typedef TokenValidator = bool Function(TokenRequestOptions options, TokenSourceResponse response);