问题描述
我正在使用Cognito登录和注册。如果我确认OTP代码,则会给我一个错误。
注册用户AuthError时发生错误:找不到用户名/客户端ID组合。 恢复建议:确保用户在后端中 造成原因: userNotFound
func confirmSignUp(for username: String,with confirmationCode: String) {
_ = Amplify.Auth.confirmSignUp(for: username,confirmationCode: confirmationCode) { result in
switch result {
case .success(_):
print("Confirm signUp succeeded")
dispatchQueue.main.async {
self.checkOTP(otp:self.storeOTP)
}
case .failure(let error):
print("An error occurred while registering a user \(error)")
dispatchQueue.main.async {
self.alert(title: "",message: "OTP not match")
}
}
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)