You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
What is the type of issue?
Documentation is incorrect, Example code is not working
What is the issue?
3 and 4 should be switched.
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?
https://elysiajs.com/tutorial.html
The text was updated successfully, but these errors were encountered: