finishedWithAuth not called after authenticate method

前端 未结 5 1112
天涯浪人
天涯浪人 2021-01-20 05:12

I have already set the clientID ,scope and then on button click in MyViewController ,i am calling method login from LoginCLass which works but after [signIn authenticate]

5条回答
  •  一个人的身影
    2021-01-20 05:58

    Here is the simple solution for this.

    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
        if (url.absoluteString.range(of: "oauth2callback") != nil) {
           GPPSignIn.sharedInstance().handle(url, sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as! String, annotation: nil)
        }
       return false
    }
    

提交回复
热议问题