invalidatedToken function

Future<bool> invalidatedToken(
  1. String token,
  2. String customerId
)

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;
}