generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
authentication with Firebase Auth and JWT (#35)
# 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 1. We generated JWT token in app in the `signInWithFirebase` function: `token = try await Auth.auth().currentUser?.getIDToken()`. 2. Then, the token is sent to the frontend via a URL parameter: `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](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: bryant-jimenez <[email protected]> Co-authored-by: Paul Schmiedmayer <[email protected]> Co-authored-by: Dhruv Naik <[email protected]>
- Loading branch information
1 parent
257bbcd
commit aa17157
Showing
6 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,6 +447,9 @@ | |
}, | ||
"Invalid URL" : { | ||
|
||
}, | ||
"Invalid URL" : { | ||
|
||
}, | ||
"JAMES_LANDAY_BIO" : { | ||
"localizations" : { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters