Monadical-SAS / monadical.com

🖥️ Custom Flask + Jinja2 static site generator and content powering Monadical.com
https://monadical.com
10 stars 4 forks source link

posts/jwt-login-firebase #72

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

A Cheat Sheet for Using your JWT Authentication with Django | Monadical Consulting

Getting DRF, SimpleJWT and Firebase to play nice.

https://monadical.com/posts/jwt-login-firebase.html

rollue commented 2 years ago

Hi thats for the write up - i've been trying to use this code snippet but can't find the FIREBASE_PUBLIC_KEY anywhere from firebase console for the line below. I was able to download the FIREBASE_PRIVATE_KEY from service accounts.

"VERIFYING_KEY": env.str("FIREBASE_PUBLIC_KEY", multiline=True),

Can you elaborate on how I can get this? Thanks.

jdcaballerov commented 2 years ago

You need to get the public key from the file exported by firebase. It's and RSA key so many libraries allow to do it.