loginWith static method

Future<ParseResponse> loginWith(
  1. String provider,
  2. Object authData, {
  3. bool doNotSendInstallationID = false,
  4. String? username,
  5. String? password,
  6. String? email,
})

Logs in a user using a service Set doNotSendInstallationID to 'true' in order to prevent the SDK from sending the installationID to the Server. This option is especially useful if you are running you application on web and you don't have permission to add 'X-Parse-Installation-Id' as an allowed header on your parse-server.

Implementation

static Future<ParseResponse> loginWith(String provider, Object authData,
    {bool doNotSendInstallationID = false,
    String? username,
    String? password,
    String? email}) async {
  final ParseUser user = ParseUser.createUser(username, password, email);
  final ParseResponse response = await user._loginWith(provider, authData,
      doNotSendInstallationID: doNotSendInstallationID);
  return response;
}