Skip to content
New issue

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

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

Already on GitHub? # to your account

Google # is not working as expected in nakama #1289

Closed
Rojash123 opened this issue Nov 22, 2024 · 2 comments
Closed

Google # is not working as expected in nakama #1289

Rojash123 opened this issue Nov 22, 2024 · 2 comments

Comments

@Rojash123
Copy link

Rojash123 commented Nov 22, 2024

So i am getting this error in my server console

{"level":"warn","ts":"2024-11-21T10:52:58.057Z","caller":"social/social.go:974","msg":"error response code from social request","provider":"google play services","code":403,"body":"{\n "error": {\n "code": 403,\n "message": "Request had insufficient authentication scopes.",\n "errors": [\n {\n "message": "Insufficient Permission",\n "domain": "global",\n "reason": "insufficientPermissions"\n }\n ],\n "status": "PERMISSION_DENIED",\n "details": [\n {\n "@type": "type.googleapis.com/google.rpc.ErrorInfo",\n "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",\n "domain": "googleapis.com",\n "metadata": {\n "method": "google.play.games.games.v1.Players.GetPlayer",\n "service": "games.googleapis.com"\n }\n }\n ]\n }\n}\n"}

This is throwing error
Session = await Client.AuthenticateGoogleAsync(token, userName, isCreateNew=false);

This is working fine
Session = await Client.AuthenticateGoogleAsync(token, userName, isCreateNew=true,loginData);

Expected Result

Can't # to old google account when i set the is create new to false

Actual Result

always has to use # to old google account when i set the is create new to true

Copy link

linear bot commented Nov 22, 2024

@Rojash123 Rojash123 changed the title Google # is now working as expected in nakama Google # is not working as expected in nakama Nov 22, 2024
@sesposito
Copy link
Member

Hello @Rojash123,

This issue seems to be related to token validation with the Google API and respective scopes, and it shouldn't matter whether create is true or false, so I'll be closing the issue.

If you're still having issues, please reach out to the community forum before considering reopening.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants