Open rmallols opened 6 years ago
Technical guidance:
Create a new method called existsKey
on the keys-manager.js
module, which receives a key
and returns:
true
if the key already exists.false
otherwise.
You essentially have to verify whether the key is already part of the keys
array or not.When user enters a login key, please save it as part of the state of the LoginToWallet
component
When user clicks on the login
button, call the existsKey
created on the first step and then either display the success or error messages (conditional rendering) depending on the outcome
So we already managed to create and persist keys. Then it's time to prove validate keys on the
LoginToWallet
component.