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

Remove PIN and Biometric keys if not added during login #125

Open
5 tasks
theblockstalk opened this issue Feb 6, 2023 · 0 comments
Open
5 tasks

Remove PIN and Biometric keys if not added during login #125

theblockstalk opened this issue Feb 6, 2023 · 0 comments
Assignees

Comments

@theblockstalk
Copy link
Contributor

if the user does not add a bin or biometric key during login, we want to be able to update the pin and biometric key so they cannot be used

DOD

  • during updateKeys() if pin or biometric keys do not exist (are null) and the blockchain key for pin/biometric is not already null, they are updated on blockchain as eosio.null to make them unusable
// UPDATE
// if pin/biometric is null, and blockchain key !== null, then update blockchain key to = `eosio.null`
user.updateKeys()
  • integration test to check if user object pin === null, and blockchain pin !== null, then blockchain pin is set to null
  • integration test to check if user object pin === null, and blockchain pin === null, then blockchain pin is not updated
  • integration test to check if user object biometric === null, and blockchain biometric !== null, then blockchain pin is set to null
  • integration test to check if user object biometric === null, and blockchain biometric === null, then blockchain pin is not updated

Hint:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant