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
User is logged in.
User logs-off.
User disconnects from internet.
User logs-in with his last typed credentials
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?
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.
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
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?