invalidatedToken function
Implementation
Future<bool> invalidatedToken(String token, String customerId) async {
final response = await http.get(
Uri.parse(
'https://api-$customerId.besistemas.com.br/auth/shd/external/info',
),
headers: {'Authorization': 'Bearer $token', 'Accept': 'application/json'},
);
return response.statusCode != 200;
}