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

Add new field to LoginSuccess to show add current device screen #2759

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Dec 20, 2024

Motivation

We want to show a page to the users to add the current device to the current origin.

In this PR, I added a new field to LoginSuccess type that will be used in future PRs to render the new page.

Changes

  • Add new mandatory field showAddCurrentDevice to LoginSuccess type.
  • Return true for showAddCurrentDevice only when the user needed multiple changes when logging in. This can be calculation by checking the cancelled RP IDs

Tests

  • I deployed it to the beta domains and checked the expected value of the field.
  • Checks for the new field were added to the current tests.

🟡 Some screens were changed

@lmuntaner lmuntaner requested a review from sea-snake December 20, 2024 09:33
@lmuntaner lmuntaner marked this pull request as ready for review December 20, 2024 09:33
@lmuntaner
Copy link
Collaborator Author

@sea-snake please review

@lmuntaner lmuntaner added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit edb52b8 Dec 20, 2024
68 checks passed
@lmuntaner lmuntaner deleted the lm-return-add-current-device-login-success branch December 20, 2024 14:40
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