authenticate method
Authenticate with username/password via the authenticate mutation.
Returns AuthenticationResult containing the current user and channels.
Implementation
@override
Future<AuthenticationResult> authenticate({
required String username,
required String password,
}) {
return _authBaseOps.mutate<AuthenticationResult>(
authenticateMutation,
{'username': username, 'password': password},
AuthenticationResult.fromJson,
expectedDataType: 'authenticate',
);
}