3

I want to verify the app authenticity. To do that I want to use Google Instance Id. Using the instance id documentation i created an instance id token. I got instance id token for a dummy app(created only to get instance id Token). After getting this token I tried to validate the token using curl. The code is

curl -H "Authorization:key=AIzaS...." https://iid.googleapis.com/iid/info/instanceIdToken

The Authorization key, I got in google-services.json:: api_key: current_key category.

It sends a 401 unauthorized error. Kindly guide me what i am doing wrong here

1 Answers1

0

I also got same issue, but this works fine if you generate token using FirebaseInstanceId instead of GoogleInstanceID

Tried on Android device..

Akhil
  • 6,667
  • 4
  • 31
  • 61