shouldRefresh method
Implementation
bool shouldRefresh(DescopeSession session) {
final expiresAt = session.sessionToken.expiresAt;
if (expiresAt != null) {
return DateTime.now().add(stalenessAllowedInterval).isAfter(expiresAt);
}
return false;
}