loginForced static method
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);
}