scusi / secureShare

minilock based secure file sharing
0 stars 0 forks source link

client should have a recovery token #15

Open scusi opened 6 years ago

scusi commented 6 years ago

The client/user should get a token up on registering which can be used to:

scusi commented 6 years ago

the server does issue the RecoveryToken to the client. the server must only keep an scrypted hash of the issued token and the salt used to scrypt the token

Up on usage of the token by the user, the server verifies:

If token is valid and has not been used already the requested action is performed and the token is marked as used.

Based on the requested action the client/user gets issued a new recovery token. If the requested action was an account deletion no new token will be issued.