Ios 如何使firebase GID登录始终询问用户电子邮件和密码?
我在使用gmail登录firebase google时遇到问题 我的意图:我希望它总是要求新的用户名和密码 我的问题:每次我成功地用Ios 如何使firebase GID登录始终询问用户电子邮件和密码?,ios,swift,firebase,firebase-authentication,Ios,Swift,Firebase,Firebase Authentication,我在使用gmail登录firebase google时遇到问题 我的意图:我希望它总是要求新的用户名和密码 我的问题:每次我成功地用 do { try! Auth.auth().signOut() self.currentUser = nil }catch let err { print ("error signout - \(err)") } 当我按下登录按钮时,它会自动使用prev G
do {
try! Auth.auth().signOut()
self.currentUser = nil
}catch let err {
print ("error signout - \(err)")
}
当我按下登录按钮时,它会自动使用prev Gmail登录。您还必须注销您的GoogleSignIn实例:
GIDSignIn.sharedInstance().signOut()
这里有记录: