loginByCwsToken method

Future<void> loginByCwsToken(
  1. MmLoginByCwsTokenRequest mmLoginByCwsTokenRequest
)

Auto-Login to Mattermost server using CWS token

CWS stands for Customer Web Server which is the cloud service used to manage cloud instances. ##### Permissions A Cloud license is required

Parameters:

Implementation

Future<void> loginByCwsToken(
  MmLoginByCwsTokenRequest mmLoginByCwsTokenRequest,
) async {
  final response = await loginByCwsTokenWithHttpInfo(
    mmLoginByCwsTokenRequest,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}