-
Notifications
You must be signed in to change notification settings - Fork 459
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
What is the type of issue?
Documentation is incorrect, Example code is not working
What is the issue?
3. In /sign-in we insert a username and hashed password with argon2id
4. In /sign-up we does the following:
4.1 We check if user exists and verify the password
4.2 If the password matches, then we generate a new session into session
4.3 We set cookie token with the value of session
4.4 We append secret to cookie to add hash attacker from tampering with the cookie
3 and 4 should be switched.
3. In /sign-up ...
4. In /sign-in ...
Also the sign-in does not work in user.ts as it is expecting the cookie when it should only be setting the cookie after successful sign-in.
Where did you find it?
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers