deleteSessions method

Future deleteSessions()

Delete Sessions

Delete all sessions from the user account and remove any sessions cookies from the end client.

Implementation

Future deleteSessions() async {
  const String path = '/account/sessions';

  final Map<String, dynamic> params = {};

  final Map<String, String> headers = {
    'content-type': 'application/json',
  };

  final res = await client.call(HttpMethod.delete,
      path: path, params: params, headers: headers);

  return res.data;
}