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

Share CredentialData param type of fromCredentials #2742

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Dec 11, 2024

Motivation

To support domain compatibility, we need to use the helper to find the RP ID.

The idea is to use the helper findWebAuthnRpId within fromCredentials from MultiWebAuthnIdentity.

Therefore, I reused the type expected there in all the chain that uses it.

At the moment, we could have used DeviceData, but API v2 doesn't use this type. Therefore, I didn't want to rely on this and reuse the custom type that holds the necessary fields for the logic.

Changes

  • Move CredentialData to its own module and add a converter to be used.
  • Change parameter type to CredentialData in findWebAuthnRpId and fromWebauthnCredentials.

Tests

  • Change the tests for findWebAuthnRpId to use the new parameter type.

🟡 Some screens were changed

@lmuntaner lmuntaner marked this pull request as ready for review December 11, 2024 09:36
@lmuntaner
Copy link
Collaborator Author

@sea-snake @LXIF please review

@lmuntaner lmuntaner requested review from sea-snake and LXIF December 11, 2024 09:37
Copy link
Contributor

@LXIF LXIF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lmuntaner lmuntaner added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit 680f8a0 Dec 11, 2024
67 checks passed
@lmuntaner lmuntaner deleted the lm-change-type-fromCredentials branch December 11, 2024 12:37
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.

3 participants