isTokenValid method
Checks if the token is still valid (returns boolean).
token JWT token to verify.
Returns true if the token is valid, false otherwise.
Implementation
Future<bool> isTokenValid(String token) async {
final result = await verifyToken(token);
return result != null;
}