Thanks for the quick reply. I check marked now
Now am getting this: Wrong email or password.
My code looks like below.
Am calling this(verifyOTP) method after entering OTP by user.
Am passing user’s mobile number to usernameOrEmail
and am passing user entered OTP to password
Am I doing anything wrong?
func verifyOTP(){
Auth0
.authentication()
.login(
usernameOrEmail: mobileTF.text!,
password: OTPTF.text!,
realm: "Username-Password-Authentication"
)
.start { result in
switch result {
case .success(let credentials):
print("access_token: \(credentials.accessToken)")
case .failure(let error):
print(error)
}
}
}