2

My Android app currently uses Google sign in and this works well. I add the tokenId to every server request and then verify it on the server. This was very easy to implement using this example (I'm using python).

I'm migrating this to go through Firebase so that I can easily add other authentication providers. My problem is that I can't seem to verify the token on the server. All I need is verification, no creation. Firebase seems to provide libraries only for Node.js and Java so I ccould use a standard JWT library like pyjwt. But where do I find Firebase's public key in order to verrify the token?

Muted
  • 83
  • 1
  • 8

1 Answers1

4

I found the answer in this post. The public keys for Firebase can be found here. The kid field in the header determines what key to use.

Community
  • 1
  • 1
Muted
  • 83
  • 1
  • 8