loginByCwsToken method
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:
- MmLoginByCwsTokenRequest mmLoginByCwsTokenRequest (required): User authentication object
Implementation
Future<void> loginByCwsToken(
MmLoginByCwsTokenRequest mmLoginByCwsTokenRequest,
) async {
final response = await loginByCwsTokenWithHttpInfo(
mmLoginByCwsTokenRequest,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}