playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 963 forks source link

Can't login to the google play games when using .RequestIdToken() with PlayGamesClientConfiguration #3172

Closed APTEM591 closed 2 years ago

APTEM591 commented 2 years ago

Describe the bug Authentication fails when i add .RequestIdToken to the PlayGamesClientConfiguration. Logs return an error "authentication failed - developer error".

To Reproduce

var config = new PlayGamesClientConfiguration.Builder()
                .RequestEmail()
                // this line causes fail: .RequestIdToken() 
                .Build();

            PlayGamesPlatform.InitializeInstance(config);
            PlayGamesPlatform.DebugLogEnabled = true;
            PlayGamesPlatform.Activate();
            Social.localUser.Authenticate(AuthResult);

Versions

EAdemov commented 2 years ago

Having the same issue. Any suggestions?

APTEM591 commented 2 years ago

Having the same issue. Any suggestions?

Already fixed. Forgot about this issue. Solution: Adding Web Application (Not Android!) client id in the console cloud credentials.

EAdemov commented 2 years ago

Worked! Thanks a lot!

PokerNinja commented 1 year ago

I'm lost

Having the same issue. Any suggestions?

Already fixed. Forgot about this issue. Solution: Adding Web Application (Not Android!) client id in the console cloud credentials.

I can't understand in which console

PokerNinja commented 1 year ago

I'm lost

Having the same issue. Any suggestions?

Already fixed. Forgot about this issue. Solution: Adding Web Application (Not Android!) client id in the console cloud credentials.

I can't understand in which console

Ok in console cloud google. Make sense. Thank you!