-
Create Session
a. Once a user logs in successfully, a session with a 2-day lifespan is created
b. If a user logs out manually (by using the
SignOutbutton), their session will be removed. Once they log in again, a new session will be created. If they do not log out, their session remains active and valid until it reaches its expiration -
Applying Better Auth for Both Regiser & Login. (Better Auth using common stateless authentication.)
Register 1. The zodlibrary is used to sanitize user inputs.2. The scryptlibrary (the same as Better Auth's) is used to hash the user input password when saving the user into the database.Login 1. Use Better Auth SSR authentication.
hon-nova/COM3013_W2025_Term_Project
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|