signOutAllExceptCurrent method

Future<APIError?> signOutAllExceptCurrent()

Signs out users from all their active sessions except the current one which makes the api call.

An active user session is required (e.g., user needs to be logged in) to call this method.

Implementation

Future<APIError?> signOutAllExceptCurrent() async {
  var response =
      await _fetcher.post<dynamic>('/_api/rest/v1/auth/signout-all-except');

  return response.errors;
}