isAccessTokenExpired property
Returns the bool status if the current access token is expired or not
Implementation
Future<bool> get isAccessTokenExpired async {
final data = await accessTokenWithExpDate;
if (data == null || data.accessToken == null || data.expiresAt == null) {
return true;
}
return DateTime.now().isAfter(data.expiresAt!);
}