#[LogInWithGoogleAuthCode] Getting 'InvalidGoogleToken: Bad Request'

3 messages · Page 1 of 1 (latest)

astral forge
#

I don't want to use google play games for my app, since it is only supported on Android, while i'm doing a cross-platform thing, and it feels a bit overkill feature-wise, since I only want to log in with that.

Log-in to google natively works fine, I can get both an accessToken as well as an authCode.
And luckily there is /Client/LoginWithGoogleAccount, which takes a serverAuthCode as parameter.

But when i call that, I get this response

[InvalidGoogleToken] Google API error code: invalid_grant details: Bad Request
{
  "ApiEndpoint": "/Client/LoginWithGoogleAccount",
  "HttpCode": 400,
  "HttpStatus": "BadRequest",
  "Error": 1026,
  "ErrorMessage": "Google API error code: invalid_grant details: Bad Request",
  "ErrorDetails": null,
  "CustomData": null,
  "RetryAfterSeconds": null
}

Is there any way I can find out more about "Bad Request"? Is that even something that I can influence, since it happens between Playfab and Google?

astral forge
#

ok uhh i added retrieving the server auth code for google play games, and then called the /Client/LoginWithGooglePlayGamesServices

but i still get

[InvalidGoogleToken] Google API error code: invalid_grant details: Bad Request
{
  "ApiEndpoint": "/Client/LoginWithGooglePlayGamesServices",
  "HttpCode": 400,
  "HttpStatus": "BadRequest",
  "Error": 1026,
  "ErrorMessage": "Google API error code: invalid_grant details: Bad Request",
  "ErrorDetails": null,
  "CustomData": null,
  "RetryAfterSeconds": null
}
#

maybe i use the wrong authcode?
its

~73 characters
has this format: 4/0A[....]B_mJ0[...]Q
so 2nd char is a / and somewhere in the middle is an underscore

does that look correct to anyone that has managed to log in via playfab?