Swift Firebase SDK 3.x Linkedin登录
我在firebase上的Linkedin登录有问题。 我在firebase中使用自定义令牌登录,我从Linkedin中检索令牌,但在firebase 3中,如果我调用:Swift Firebase SDK 3.x Linkedin登录,swift,firebase,swift3,firebase-authentication,linkedin,Swift,Firebase,Swift3,Firebase Authentication,Linkedin,我在firebase上的Linkedin登录有问题。 我在firebase中使用自定义令牌登录,我从Linkedin中检索令牌,但在firebase 3中,如果我调用: FIRAuth.auth()?.sign(使用CustomToken:my_token){(用户,错误) 我得到一个错误: Error Domain=FIRAuthErrorDomain code=17000“自定义令牌格式不正确。请检查文档。”UserInfo={NSLocalizedDescription=自定义令牌格式不正
FIRAuth.auth()?.sign(使用CustomToken:my_token){(用户,错误)
我得到一个错误:
Error Domain=FIRAuthErrorDomain code=17000“自定义令牌格式不正确。请检查文档。”UserInfo={NSLocalizedDescription=自定义令牌格式不正确。请检查文档。Error\u name=Error\u INVALID\u custom\u token}
但是我从LISDKSessionManager上创建的会话中获取令牌
以下是我的全部功能:
LISDKSessionManager.createSession(withAuth: [LISDK_BASIC_PROFILE_PERMISSION,LISDK_EMAILADDRESS_PERMISSION], state: nil, showGoToAppStoreDialog: true, successBlock: { (returnState) -> Void in
guard let session = LISDKSessionManager.sharedInstance().session else { return }
FIRAuth.auth()?.signIn(withCustomToken: session.accessToken.accessTokenValue) { (user, error) in
//here I get the error
}
})
LinkedIn OAuth令牌不能在Firebase身份验证中自动使用。它们需要转换为Firebase身份验证JWT 请参阅或上的页面