Conversation
…om the frontend, we just need to pass in the uid of the person trying to sign in
There was a problem hiding this comment.
Pull request overview
This pull request integrates the Firebase Admin SDK into the backend to enable custom Firebase token generation. The PR adds firebase-admin>=7.1.0 as a dependency and implements a get_firebase_token method in the AuthConnector class that creates custom Firebase authentication tokens for given user IDs.
Changes:
- Added firebase-admin (v7.1.0) dependency along with its transitive dependencies (cryptography, google-api-core, google-cloud-firestore, google-cloud-storage, and related packages)
- Implemented a
get_firebase_tokenmethod in AuthConnector class that initializes the Firebase Admin SDK and creates custom tokens
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| backend/pyproject.toml | Added firebase-admin>=7.1.0 dependency declaration |
| backend/uv.lock | Added firebase-admin and all transitive dependencies with locked versions |
| backend/auth/auth_connector.py | Added Firebase Admin SDK imports and implemented get_firebase_token method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
we're not creating tokens. firebase auth already will do that on the website. we're just verifying them. instead use |
Allows website to authorize device after user login with Firebase token
Loads credentials from FIREBASE_ADMIN_KEY secret for token verification
|
added the missing |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
integrated the admin sdk, used it to add a create token method, sorry if its in the wrong spot