google / identity-toolkit-node-client

Google Identity Toolkit client library for Node.js
Apache License 2.0
30 stars 25 forks source link

Cannot verify the Token generated via iOS SDKs. #17

Open iamraafay opened 8 years ago

iamraafay commented 8 years ago

I'm following this doc to verify the token on the backend using this package. The token 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 error Unable to verify the ID Token: No pem found for envelope: {"alg":"RS256","kid":"ad8070377cc099d874672776dfx.xxxxxxxx"}.

liujin-google commented 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.