Silent Authentication
Below are the steps for silent authentication in the system:
Step1: Pass user information with launch SDK as describe below:
GluedIn.shared.quickLaunch(
email: "xyz@xyz.io",
password: "please enter your password here",
fullName: "Please enter full name of the user",
autoCreate: true,
termConditionAccepted: true,
userType: "User type (SVOD or AVOD)",
delegate: self) {
[weak self] controller in
guard let weakSelf = self else { return }
if let viewController = controller {
weakSelf.navigationController?.pushViewController(viewController,
animated: true)
}
}
failure: { error, code in
Debug.Log(message: error)
}
- email: Email of the user to be registered or logged in.
- password: Password for the user.
- deviceId: Device ID, if available; otherwise, leave it blank.
- deviceType: It could be "iOS" or "Android". Use the exact names as provided.
- fullName: Full name of the user.
- autoCreate: Set to true to create a new user if the provided email ID is not available in the database. Set to false for authentication only.
- termConditionAcceptedSet to true if the user accepts the terms and conditions. By default, set this to true.
- delegatePass the current delegate method. If a delegate object is not prepared, pass self