validateToken static method

Future<bool> validateToken()

Implementation

static Future<bool> validateToken() async {
  final res = await httpClient.post(Config.getURI('/validate_jwt_token.json'));

  debugPrint('[DEBUG]: validateToken statusCode ${res.statusCode}');
  debugPrint('[DEBUG]: validateToken body ${res.body}');

  if (res.statusCode != 200) return false;

  return true;
}