loginForced static method

Future<User> loginForced(
  1. String deviceIdentifier,
  2. String password
)

Implementation

static Future<User> loginForced(String deviceIdentifier, String password) async {
  final out = await getApi().login(
    baseUrl: baseUrl,
    authToken: appToken,
    userIdentifier: deviceIdentifier,
    password: password,
  );

  if (out.mfa != null) {
    throw Exception("User enabled mfa and this must be handled.");
  }

  return getUser(deviceIdentifier, out.userData!, false);
}