Skip to content
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

Feature/waa s prompt user to sign in with previous login method #44

Conversation

BellringerQuinn
Copy link
Contributor

@BellringerQuinn BellringerQuinn commented Dec 1, 2023

Save the method and email user used to log in on the most recent session using PlayerPrefs. Highlight the most recent method so that user is most likely to log in the same way. If the user doesn't login via that method, display a popup to remind the user how they logged in last time and notify them that if they use a different login method than they will be given a different account.

Scenario 1 - User uses same login method as last time:
https://github.com/0xsequence/sequence-unity/assets/49766546/aefe0d1e-037c-4c50-b990-71849ed5ea93

Scenario 2 - User previously logged in via social sign in and goes to log in via email (or a different social sign in provider)
https://github.com/0xsequence/sequence-unity/assets/49766546/6653d800-5d26-43f7-9b33-673ad900487c

Scenario 3 - User previously logged in via email and goes to log in via social sign in (or a different email)
https://github.com/0xsequence/sequence-unity/assets/49766546/18fbd44d-8144-44a1-b61f-862ced5d18c8

…n. Created a scene for WaaS end to end testing. Made LoginPanel a prefab to make it easier to re-use accross scenes (as I use it in the WaaSEndToEndTests scene
…ound in the scene and the LoginPanel is dismissed
…ceptions thrown throughout and fail the test - otherwise, the tests fail silently and the WaaSTestHarness never outputs the results (as it doesn't receive all the expected pass/fail events
…and manually for email sign in) when loging in to WaaS. Store this in PlayerPrefs as an enum/int. Load it in the LoginPage awake method so that we can behave accordingly
… a user is most likely to login via that method
…via social login or email login). If a user most recently logged in via email but goes to log in with a different email, open the InfoPopupPanel and notify the user that they are logging in with a different email than last time. Similarly, if the user last logged in with email, automatically fill the email field with the email the user used last. For social login, include the email most recently used as the login_hint during the request.
@BellringerQuinn BellringerQuinn marked this pull request as ready for review December 8, 2023 13:45
@taylanpince taylanpince merged commit 2a309d2 into Feature/WaaSIntegration_emailSignIn Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants