isAccessTokenExpired static method
True when the access token expires within 30 seconds.
Implementation
static bool isAccessTokenExpired() {
final DateTime? expiresAt = accessTokenExpiresAt();
if (expiresAt == null) return false;
return DateTime.now().toUtc().add(_refreshLeeway).isAfter(expiresAt);
}