Open iamraafay opened 8 years ago
The identity-toolkit-node-client does not recognize the token issued from Token Service API. If you need Token Service, I would suggest to migrate to https://firebase.google.com, with which Google Identity Toolkit has merged.
I'm following this doc to verify the
token
on the backend using this package. Thetoken
is generated via iOS SDK. I'm not sure how the secret is composed via the credentials I've provided to iOS SDKs, to generate the token, but I've generated.pem
anyways to decode and verify the token for the backend. It fails with the following errorUnable to verify the ID Token: No pem found for envelope: {"alg":"RS256","kid":"ad8070377cc099d874672776dfx.xxxxxxxx"}
.