needsRefresh method
Whether now is at or past expiry minus skew.
Implementation
bool needsRefresh(
DateTime now, {
Duration skew = const Duration(seconds: 60),
}) {
final expiresAt = this.expiresAt;
return expiresAt != null && !now.isBefore(expiresAt.subtract(skew));
}