generated from StanfordBDHG/SwiftPackageTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user-linking logic for signing up (#31)
# Account Linking ## ♻️ Current situation & Problem In the `FirebaseEmailPasswordAccountService` of our project, the `signUp` function solely handles the creation of new user accounts or signing in with OAuth credentials. This process did not account for users who are already signed in (possibly anonymously) and wish to link their accounts with email and password credentials. See [#54](StanfordBDHG/PediatricAppleWatchStudy#54) for details. ## ⚙️ Release Notes - The `signUp` function in `FirebaseEmailPasswordAccountService` now supports linking new email and password credentials to already signed-in users (including anonymous accounts). - If onboarding starts with an anonymous account, users can expect a seamless transition when upgrading from said anonymous account to a permanent one. - Fixes an issue where the reauthentication alert doesn't work. ## 📚 Documentation The modification ensures that if a user is already signed in (anonymously or with OAuth credentials), their account can be upgraded with email and password credentials by linking these new credentials to their existing account. See [Firebase documentation](https://firebase.google.com/docs/auth/ios/anonymous-auth) for details. ## ✅ Testing TBD. ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: Andreas Bauer <[email protected]>
- Loading branch information
1 parent
e05e665
commit 16c1c75
Showing
8 changed files
with
117 additions
and
6 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
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