-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(IT Wallet): [SIW-568,SIW-565] Decode PID at startup after PIN (#5057
) ## Short description This PR proposes a refactor to the PID decode process which is now decoded at startup after the user inserts its PIN. ## List of changes proposed in this pull request - Adds the PID decode action dispatch in the startup saga. This allows us to not worry about decoding the PID in each screen it needs to be decoded; - Removes the decoding from the `ItwHomeScreen.tsx` screen but keeps it in the `itwPidPreviewScreen.tsx`. That's necessary because the issuing happens after the startup saga if the wallet operational. We might rethink the PID state to be incorporated into the credentials state down the road. ## How to test There a are few things that should be tested: 1. Obtain a PID; 2. Authenticate on the RP demo website; 3. Close the app and open it again. You should still see the decoded PID in the wallet section; 4. Close the app and open it again. Start the RP flow without opening the wallet section, it should work as expected.
- Loading branch information
1 parent
18977da
commit 29dcff7
Showing
3 changed files
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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