isValid property

bool get isValid

Checks if the ID token is still valid.

Implementation

bool get isValid {
  if (idToken.isEmpty) return false;
  final graceSeconds = _getGraceSeconds();
  final remaining = expiresAt - _currentTimestamp();
  return remaining > graceSeconds;
}