Firebase kicks out current user

前端 未结 14 1807
一个人的身影
一个人的身影 2020-11-22 01:42

So I have this issue where every time I add a new user account, it kicks out the current user that is already signed in. I read the firebase api and it said that \"I

14条回答
  •  攒了一身酷
    2020-11-22 02:15

    The Swift version:

    FIRApp.configure()
    
    // Creating a second app to create user without logging in
    FIRApp.configure(withName: "CreatingUsersApp", options: FIRApp.defaultApp()!.options)
    
    if let secondaryApp = FIRApp(named: "CreatingUsersApp") {
        let secondaryAppAuth = FIRAuth(app: secondaryApp)
        secondaryAppAuth?.createUser(...)
    }
    

提交回复
热议问题