Open scusi opened 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.
The client/user should get a token up on registering which can be used to: