-
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
SignOut
button), 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 zod
library is used to sanitize user inputs.2. The scrypt
library (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.
-
Notifications
You must be signed in to change notification settings - Fork 0
hon-nova/COM3013_W2025_Term_Project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published