Auth.auth()。signIn(withCustomToken:){(user,error)收到的回调是nil

时间:2017-10-17 23:09:27

标签: ios firebase firebase-authentication linkedin-api

我正在尝试使用Firebase对LinkedIn进行身份验证,但我无法理解让自定义令牌访问Firebase身份验证所需的步骤。

以下是我在用户签名的功能:

func signInWithCustomToken() {
    let customToken = user.id!
    Auth.auth().signIn(withCustomToken: customToken) { (user, error) in

        print(user)
    }
}

但这是打印出来的

  

我查看了以下问题:LinkedIn login with custom token ( ERROR_INVALID_CUSTOM_TOKEN )Firebase Auth (with Custom Token, for Linkedin) returns a user with no email and no data (only uid)。但仍然无法使其发挥作用。

0 个答案:

没有答案