Repository navigation
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…wer deep link erased
…the deep link a handler owns
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
If the wallet was already open on
/scan-qrand showing the previous login's "signed in" drawer, a neww3ds://authlink was treated as a duplicate and dropped. This happens when you log out of a platform and tap "Login with eID" again. Only a second tap went through.goto("/scan-qr")does nothing when the page is already the current route, so the page receives the link as adeepLinkReceivedevent instead. Its duplicate guard used to skip any auth link while the consent drawer or the signed-in drawer was open.What changed in
scanLogic.ts:handleAuth()reads the session, redirect and scan/deep-link origin before its first await. A link that arrives while the wallet is signing can no longer send that signature to another platform or session. Auth links that arrive while a login is being signed are ignored, so the consent is not closed under the user.Storageused by the deep-link specs is now one shared utility ($lib/utils/memoryStorage.utils.ts).docs/architecture/deepLink.mddescribes the behaviour when/scan-qris already open.The
redirectparameter on Android, raised in the same issue, is not changed here.Issue Number
#1222
Type of change
How the change has been tested
src/routes/(app)/scan-qr/scanLogic.spec.ts. Each one first failed against the old code:npx vitest run --project eid-wallet: 8 files, 125 tests passing.biome check ./srcis clean.svelte-checkreports no errors in the changed files.Change checklist