isExpired property

bool get isExpired

Checks if the token is expired.

Compares the token's expiration timestamp with the current time to determine if the token has expired.

Returns true if the token has expired, false otherwise.

Implementation

bool get isExpired => _exp < DateTime.now().millisecondsSinceEpoch ~/ 1000;