Closed justin-thurman closed 3 years ago
Thanks @ViMonks
On work laptop atm. Will merge and push changed package this weekend.
No problem. Thanks for the repo!
this appears to be driven by changes to the firebase_admin SDK introduced in v3:
https://firebase.google.com/docs/admin/migrate-python-v3
will merge change, in addition to pinning the version within setup.py before releasing the new version
The authenticate_token() method on the FirebaseAuthentication class was calling firebase_admin.auth.AuthError. This error does not exist, causing the authenticate method to fail.
The most appropriate existing error I could find was firebase_admin.auth.UserNotFoundError, so I updated it with that. A list of all errors available on firebase_admin.auth (if you don't like UserNotFoundError) can be found here: https://firebase.google.com/docs/reference/admin/python/firebase_admin.auth.