cpp-android-basic-samples icon indicating copy to clipboard operation
cpp-android-basic-samples copied to clipboard

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

Open anttirt opened this issue 4 years ago • 0 comments

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?

anttirt avatar Mar 16 '22 15:03 anttirt