michaelKurowski / lokim2

An internet messenger that cares about privacy.
4 stars 0 forks source link

Offline authorization #143

Open michaelKurowski opened 6 years ago

michaelKurowski commented 6 years ago

Is your feature request related to a problem? Please describe. User should be able to log-in while being offline.

Describe the solution you'd like All the cache should be encrypted upon being logged off with the last used password. User should be able to re-enter the last typed password while being offline to view his chat history.

Describe alternatives you've considered Not being able to log in while being offline.

User story

  1. User is logged in.
  2. User logs-off.
  3. User disconnects from internet.
  4. User logs-in with his last typed credentials
  5. User have offline access to his chat history.

Additional context Should we store user's password in JS during his session? If not, how do we want to encrypt it during logging off?

Jordan141 commented 6 years ago

For the query regarding additional context: We could make a key based off their password and store that instead of having the password itself stored in JS.