tokenExpired method
Checks if the suer token is still expired.
Implementation
@override
Future<bool> tokenExpired() async {
if (!_isAuthenticated) return true;
try {
// Try a simple API call to check if token is valid
await client.listFiles('/');
return false;
} catch (e) {
return e.toString().contains('401') || e.toString().contains('403');
}
}