bool isTokenValid(String token) { return token.isNotEmpty && token.split('.').length == 3 && !isTokenExpired(token); }