google/google-api-javascript-client

No method found to decode credential JWT token.

misbahkhalilaz opened this issue · 2 comments

Important gapi.auth2 notice: gapi.auth2 has been deprecated and replaced with Google Identity Services. Please see https://developers.googleblog.com/2021/08/gsi-jsweb-deprecation.html for more information. If you have questions related to authentication/authorization please look at the associated documentation or post questions on Stack Overflow with the google-oauth tag.

Summary
I recently migrated from gapi to gsi, and now I'm getting a credential object in the callback, but I didn't find any gsi internal method to decode it. I'm currently decoding the payload without verifying the credential token signature.

Is there any method to decode credential token along with their signature validation?

Thanks.

I am looking for the solution to this as well