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

decodedPlayIntegrityToken missing for decoded STANDARD integrity token #3420

Closed jozefvodicka closed 5 months ago

jozefvodicka commented 5 months ago

Steps to reproduce

With google-api-nodejs-client make a call using STANDARD INTEGRITY TOKEN and you get Screenshot 2024-01-16 at 14 26 05

Issue:

  1. google-api-nodejs-client/src/apis/playintegrity/v1.ts expects only "tokenPayloadExternal" within response, which represents decodedStandardPlayIntegrityToken. For STANDARD PLAY INTEGRITY TOKEN variable "decodedPlayIntegrityToken" is present.

Proposed solution:

  1. add inside the package also "decodedPlayIntegrityToken" variable.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!