-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Getting nil
for id token
#46
Comments
Hmm, I put the call to get the id token elsewhere in the code, e.g. when I click somewhere on the screen, and the token was valid there (and not This probably has something to do with network latency or some other "race condition" issue 🤷 |
Still getting this issue inside the callback function |
So you are calling Could you please try something like this with a timer.delay() to see if it is a timing issue:
|
So, I didn't turn on |
This seems relevant to your problem: https://stackoverflow.com/q/77466444 |
Hi, this is sort-of-a cross-post with the Defold forums here: https://forum.defold.com/t/need-help-getting-id-token-from-google-play-services/73719
I'm trying to get an id_token from GPGS but I keep getting
nil
. I've set up thegame.project
with a client_id and request_id_token=1, but am not sure if I should be adding the Android Credentials client_id or a Web Credential client_id from the GCP panel.The sign in is successful and I get the id and display name for my sign in, but I need the id_token as well for further authentication against Supabase in my case.
Can you help me with nailing down the cause of this? What might I be doing wrong?
Some quick code from my attempts (I try a silent login, and if that fails, I show a "sign in with Google" button.
The text was updated successfully, but these errors were encountered: