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

feat: improving loginAttempt storage #1067

Conversation

CarolineLCa
Copy link
Contributor

Summary of Changes

Fix issue storing loginAttempt on keychain

Related Issues

Resolves #1031

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this);
  • Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components;
  • Updated documentation as needed for changed code and new or modified features;
  • Added sufficient tests so that overall code coverage is not reduced.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated tests have passed.

PR template adapted from the Python attrs project.

Signed-off-by: Caroline Lucas Calheirani <[email protected]>
@CarolineLCa CarolineLCa requested a review from a team as a code owner January 19, 2024 15:46
@CarolineLCa CarolineLCa changed the title improving loginAttemp storage feat:improving loginAttemp storage Jan 19, 2024
@CarolineLCa CarolineLCa changed the title feat:improving loginAttemp storage feat: improving loginAttemp storage Jan 19, 2024
@CarolineLCa CarolineLCa changed the title feat: improving loginAttemp storage feat: improving loginAttempt storage Jan 19, 2024
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (8c7b625) 62.46% compared to head (1719a3b) 61.57%.

Files Patch % Lines
packages/legacy/core/App/services/keychain.ts 25.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1067      +/-   ##
==========================================
- Coverage   62.46%   61.57%   -0.89%     
==========================================
  Files         172      172              
  Lines        5517     5528      +11     
  Branches     1585     1586       +1     
==========================================
- Hits         3446     3404      -42     
- Misses       2049     2102      +53     
  Partials       22       22              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CarolineLCa
Copy link
Contributor Author

@wadeking98 @jleach @bryce-mcmath may you take a look, please?

@bryce-mcmath
Copy link
Contributor

@wadeking98 can you check this one out when you have a moment?

@@ -95,6 +103,19 @@ export const loadWalletSalt = async (): Promise<WalletSalt | undefined> => {
return JSON.parse(result.password) as WalletSalt
}

export const loadLoginAttempt = async (): Promise<LoginAttempt | undefined> => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you export this method from the bifold index?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bryce-mcmath I didn't understand. We don't have this method in the index

Copy link
Contributor

Choose a reason for hiding this comment

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

if you go into packages/legacy/core/App/index.ts and import it and export it from there then other wallets can access it, like BC Wallet. Other than that it looks good

@@ -144,4 +145,5 @@ export {
components,
contexts,
Text,
loadLoginAttempt,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wadeking98 Is this okay?

@thiagoromanos thiagoromanos merged commit 942d9d0 into openwallet-foundation:main Feb 21, 2024
5 of 7 checks passed
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.

Possibility of bypassing the PIN lock mechanism
4 participants