authenticate method

  1. @override
Future<AuthenticationResult> authenticate({
  1. required String username,
  2. required String password,
})

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',
  );
}