-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authentication with Firebase Auth and JWT #35
Conversation
Handlers for receiving a notification in the background or foreground, call methods in the PrismaStandard for setting the time received in Firestore.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
==========================================
+ Coverage 36.20% 37.01% +0.81%
==========================================
Files 43 43
Lines 1942 1970 +28
==========================================
+ Hits 703 729 +26
- Misses 1239 1241 +2
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
…rebase' into jwt-auth
updating the packages, ChatView adding getFirebaseIDToken, updating the GOogleService plist.
Authentication with Firebase Auth and JWT
♻️ Current situation & Problem
Please refer to these two discussion posts for context:
https://github.com/orgs/CS342/discussions/78.
https://github.com/orgs/CS342/discussions/83
⚙️ Release Notes
Modifications has been made to Prisma/Chat/ChatView
signInWithFirebase
function:token = try await Auth.auth().currentUser?.getIDToken()
.if let url = URL(string: "http://localhost:3000?token=\(token)")
Successful implementation is reflected by passing a JWT token from Swift to the web chat interface, which connects to the python backend and prints "user successfully authenticated via JWT".
📚 Documentation
See in-line documentation
✅ Testing
This codebase has not been thoroughly tested. We will address the stylistic requirements later.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: