Firebase ID token verification

Answered

Hey everyone,

I am currently trying to verify Firebase-generated ID token (my setup is: Firebase for auth, XANO as function & db backend).

Thus, I'm in the process of writing a function to verify a Firebase auth token within Xano (to then auth within Xano and make authenticated API calls) - for this, I am following the steps provided by Firebase (s. bottom part here: https://firebase.google.com/docs/auth/admin/verify-id-tokens)

While I get every step working, I am totally stuck on the bottom part:

Does anyone have a clue how this works?

I assume I need to use JWS or JWE Decode functions and somehow use one of these public keys provided here (https://www.googleapis.com/robot/v1/metadata/x509/[email protected]; the one matching my kid key id). However, I somehow do not get this set up. It always throws me a format error for the key...


Anyone having a clue?

Thanks!

Johannes

8 replies