revokeSession static method

Future<void> revokeSession(
  1. String token
)

revoke the session by providing the session token Use this to logout an user

Implementation

static Future<void> revokeSession(String token) async {
  // ignore: omit_local_variable_types
  final Map<String, String> tmpHead = {}
    ..addAll(_headers)
    ..['X-Parse-Session-Token'] = token;
  _headers.removeWhere((key, value) => key == 'X-Parse-Session-Token');
  var response = await http.post('$_url/parse/logout', headers: tmpHead);
  _errorHandler(response);
}