isExpired property
bool
get
isExpired
Whether this session has expired.
Returns true if expiresAt is in the past, false otherwise. Use this to check if re-authentication is needed.
Example:
if (session.isExpired) {
// Prompt user to re-authenticate
}
Implementation
bool get isExpired => DateTime.now().isAfter(expiresAt);