-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor Registration Flow to Remove Consent Screen and Anonymous Login and move Invitation Code screen #105
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
Here I think it makes sense, if you have time, to have a look at it Paul and give feedback on whether the flow is now adapted as you imagined. As you know best how it should be, @pauljohanneskraft :) |
Signed-off-by: Basler182 <[email protected]>
Signed-off-by: Basler182 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for implementing this! Sorry for not going into a lot of detail, if you have questions, let me know and we can schedule a call.
Here are some points:
- We never want to sign in anonymously, it will be disabled and won't be possible. For the case of using Google authentication, we want to simply sign in with that credential, which should be possible without the go-around by anonymously signing in and then linking credentials.
- New users will sign up using the
createUser
method and then call theenrollUser
function - you still referencecheckInvitationCode
which doesn't exist anymore. Since the server is already merged, you may want to check that behavior with the Firebase emulators - if you do not runnpm run prepare
before callingnpm run serve:seeded
, the git commit change has little to no effect, so please make sure to callnpm run prepare
whenever you check out a different commit. - You will need to make sure to ask for the invitation code in three scenarios:
- The user has not completed onboarding a single time, then we just always start from the beginning, even if the user finished some previous step. The sign in/sign up screen on iOS would then show the logged in account instead of the sign in form when an account is already signed in. The invitation code is requested afterwards depending on whether the user has already enrolled or not (by checking whether the user object exists or whether it contains an
invitationCode
property, which is pretty much the same thing at the moment). - The user has finished onboarding, but is signed in with an account that is not enrolled yet. This happens, when the user finished onboarding with one account, then singed up with a new account that is not enrolled. We would need to show the sign in/sign up screen with the signed in account visible and on tap of the "next" button, we ask for the invitation code.
- The user has completed onboarding, but is not signed into an account. This happens, when the user finished onboarding with one account and then decided to log out. In this case, we show the sign in/sign up screen with no account signed in.
- The user has not completed onboarding a single time, then we just always start from the beginning, even if the user finished some previous step. The sign in/sign up screen on iOS would then show the logged in account instead of the sign in form when an account is already signed in. The invitation code is requested afterwards depending on whether the user has already enrolled or not (by checking whether the user object exists or whether it contains an
On a quick test, I initially managed to finish the onboarding by signing into an existing account, but then on a restart of the app was asked for an invitation code
Refactor Registration Flow to Remove Consent Screen and Anonymous Login and move Invitation Code screen
♻️ Current situation & Problem
⚙️ Release Notes
✅ Testing
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: