Firebase SDK
으로 내 앱 VK 권한을 추가하려고합니다.Firebase auth 맞춤 토큰 iOS
사용자 권한이 완료되면 토큰을 Firebase에 전달하려고합니다.
func vkSdkAccessAuthorizationFinishedWithResult(result: VKAuthorizationResult!){
let tokenString = result.token.description
FIRAuth.auth()?.signInWithCustomToken(tokenString) { (user, error) in
// ...
}
}
Error: [1] (null) "NSLocalizedDescription" : "The custom token format is incorrect. Please check the documentation."
나는 서버를 실행하지 않고 사용자 정의 인증과 중포 기지를 사용할 수 있습니까?
당신은 결과 –
를위한 코드를 게시 할 수 있습니다() .createCustomToken (uid);'firebase ... 그 다음 당신을 위해 일한다 –
당신이'firebase.auth와 토큰을 만들 필요가 없음에, 사용자 정의 토큰 생성 .... 내가 VK 서버에서 토큰을 얻을 –