我正在尝试使用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)。但仍然无法使其发挥作用。