googleapis / google-api-nodejs-client

Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
Apache License 2.0
11.26k stars 1.91k forks source link

Play Games Services Server-Side API Access sample #3468

Open teksal opened 2 months ago

teksal commented 2 months ago

I'm trying to implement the Java example shown here with Nodejs using the client libraries. My server runs as a Cloud Run Service. I've tried several variations of the samples shown here, but they all ended up Invalid Credentials error.

Required credentials are all set up in Play Console, the Android client can login to Games Services, can get the authCode as shown here, pass that code to server, and I could not figure out how to proceed after that. I just want to verify this player on the server, calling applications.verify() method.