playgameservices / cpp-android-basic-samples

Sample games using the Google Play Games C++ SDK
302 stars 133 forks source link

There is no way to get a server auth code using the Play Games C++ SDK #72

Open anttirt opened 2 years ago

anttirt commented 2 years ago

Sorry if this is the wrong place, I could not find where to file issues with the Play Games C++ SDK.

When using Java APIs, I can use GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN) together with requestServerAuthCode(String) as documented here to retrieve a server auth code.

There doesn't seem to be an option in the C++ SDK to do this. I would expect for example gpg::GameServices::Builder to contain a configuration function such as RequestServerAuthCode() but was unable to find anything resembling it.

  1. Is there a way to retrieve a server auth code with the Play Games C++ SDK?
  2. If not, how can I use the Play Games C++ SDK together with GoogleSignInOptions.Builder.requestServerAuthCode?