Sample API call
On the Sign in button click call the userSignIn Method as shown below.
/*
Make Auth class object at class variable level
var auth: Auth? = nil
*/
auth?.userSignIn(
email: txtEmail.text ?? "",
password: txtPassword.text ?? "",
firebaseToken: "",
deviceId: getDeviceUUID(),
deviceType: getDevicePlatForm(),
success: { [weak self] result in
guard let weakSelf = self else { return }
UserDefaults.standard.set(true, forKey: "isLogin")
// Action for sign in success
}, failure: { [weak self] error in
guard let weakSelf = self else { return }
// Action for Fail
})