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 apiPath = '/account/sessions';

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

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

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

  return res.data;
}