Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Create Credential without access token due to disable ATT in iOS #1182

Open
phuc-nor opened this issue Feb 12, 2025 · 1 comment

Comments

@phuc-nor
Copy link

phuc-nor commented Feb 12, 2025

What is your question?

Due to [Bug] SignIn With Facebook Exception: Bad access token: {"code":190,"message":"Invalid OAuth access token - Cannot parse access token"} in FB SDK 17
with a reply you can create the credentials using OAuthProvider instead of FacebookAuthProvider
But Firebase Unity SDK doesn't have function which create Credential without access token like Implement Facebook Limited Login mention.

// Initialize a Firebase credential.
let idTokenString = AuthenticationToken.current?.tokenString
let nonce = currentNonce
let credential = OAuthProvider.credential(withProviderID: "facebook.com",
                                          idToken: idTokenString!,
                                          rawNonce: nonce)

Firebase Unity SDK provided were:
GetCredential(string ProviderId, string idToken, string accessToken)
GetCredential(string ProviderId, string idToken, string rawNonce, string accessToken)
Is using limited facebook login in Unity is impossible right now ?

Firebase Unity SDK Version

11.9.0

Unity editor version

2121.3.45f1

Installation Method

Unity Package Manager

Problematic Firebase Component(s)

No response

Other Firebase Component(s) in use

No response

Additional SDKs you are using

No response

Targeted Platform(s)

Apple Platforms

Unity editor platform

Mac

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants