DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

How do I authorize firebase JWT on BaaS (MongoDB stitch)?

It is already easy, if I write my own backend, because I can authorize with firebase-admin.

But cracking the JWT with native library is unknown...

For MongoDB stitch, it looks like this,

BTW, what am I trying to do?

  • Firebase is linked with Authentication service, Google Cloud Storage and Firestore.
  • Google Cloud Storage is presumably larger and cheaper than MongoDB Atlas's.
  • Firestore sucks. It cannot even count documents.
  • MongoDB stitch also has authentication service, but I don't know how to

Top comments (3)

Collapse
 
qm3ster profile image
Mihail Malo • Edited
  1. Sounds like googleapis.com/robot/v1/metadata/x... is the JWK URL (second radio option) you need for "Custom JWT", have you tried putting that in?
  2. LMAO, who needs to count documents? When would this even come up in real life?
Collapse
 
daveteu profile image
Dave

why are you even comparing google cloud storage to mongo atlas?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Mongo Stitch is mongodb.com/cloud/stitch