Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何使firebase GID登录始终询问用户电子邮件和密码?_Ios_Swift_Firebase_Firebase Authentication - Fatal编程技术网

Ios 如何使firebase GID登录始终询问用户电子邮件和密码?

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

我在使用gmail登录firebase google时遇到问题

我的意图:我希望它总是要求新的用户名和密码

我的问题:每次我成功地用

do {
            try! Auth.auth().signOut()
            self.currentUser = nil
        }catch let err  {
            print ("error signout - \(err)")
        }

当我按下登录按钮时,它会自动使用prev Gmail登录。您还必须注销您的GoogleSignIn实例:

GIDSignIn.sharedInstance().signOut()
这里有记录: