问题描述
我是 pdf 和 mupdf 的新手。 svg-device.c 中的一些代码在这里:
case .link:
if let currentUser = Auth.auth().currentUser {
currentUser.link(with: credential) { (result,error) in
if let error = error,(error as NSError).code == AuthErrorCode.credentialAlreadyInUse.rawValue {
print("The user you're signing in with has already been linked,signing in to the new user and migrating the anonymous users [\(currentUser.uid)] tasks.")
if let updatedCredential = (error as NSError).userInfo[AuthErrorUserInfoUpdatedCredentialKey] as? OAuthCredential {
print("Signing in using the updated credentials")
Auth.auth().signIn(with: updatedCredential) { (result,error) in
if let user = result?.user {
currentUser.getIDToken { (token,error) in
if let idToken = token {
(self.taskRepository as? FirestoreTaskRepository)?.migrateTasks(from: idToken)
self.doSignIn(appleIDCredential: appleIDCredential,user: user)
}
}
}
}
}
}
else if let error = error {
print("Error trying to link user: \(error.localizedDescription)")
}
else {
if let user = result?.user {
self.doSignIn(appleIDCredential: appleIDCredential,user: user)
}
}
}
}
为什么使用 final_tm 作为最终变换?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)