playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.44k stars 959 forks source link

Save newly generated serverAuthCode when calling GetAnotherServerAuthCode #3001

Open Worly opened 3 years ago

Worly commented 3 years ago

When GetAnotherServerAuthCode is called, newly generated authCode is not saved, or in other words, GetServerAuthCode() still returns the old one, which doesn't make much sense, since server can verify authCode only once. After first verification of auth code, Google Play Games Service will return "invalid_grant" if you try to verify it again, so I think it doesn't make sense to keep the old one when you generate a new auth code.