AlessandroStaffolani / shamir-fido

Project for a simple electron application that uses shamir's secret sharing and FIDO 2-factor-authentication
MIT License
1 stars 0 forks source link

Need to store a persistent information #12

Closed AlessandroStaffolani closed 5 years ago

AlessandroStaffolani commented 5 years ago

We need to integrate a way to persist one user information, the number of registered device, because when we create the new shard for authenticate a new device we must set a new id for this shard, the id can't be always the same and must be one more for each device.

There are at least tree possible solution that allow to maintain this information locally to the app:

  1. store into a file inside the application
  2. use browser store session
  3. use neDB, a simple and lightweight database mongo like, written in plain javascript used for store simple information in electron application
sabbio93 commented 5 years ago

@ale8193 no just randomize id no mem