Add preliminary auth and form logic #43
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sprint
#33
Who worked on this sprint?
Jack Liu
Features Implemented
Auth Schema
Middleware
Signup Form (Not fully working)
New files created
\src\app\components\signin-form.tsx
\src\app\components\signup-form.tsx
\src\lib\auth.ts
\src\lib\auth-client.ts
\src\lib\middleware.ts
\src\app\api\auth[...all]\route.ts
\src\app\dashboard\dumyPage.tsx
\src\app\signup\page.tsx
\src\lib\server\users.ts
Existing files modified
\src\lib\schema.ts
Acceptance Criteria
BetterAuth is installed and added to package.json
New database tables for authentication (users, sessions, etc.) are created in src/lib/schema.ts
.env file updates have been shared with Dan and Shayne (don’t push them on GitHub!)
Users are redirected to a dummy landing page after successful login
The dummy landing page is protected and cannot be accessed without logging in
Users can log in using email and password
Users can log-out on the dummy landing page
After logout, users cannot access the protected page without logging in again
UI matches Figma
Code runs locally without errors and builds successfully
Testing: how did you test?
Tested signing up new accounts on the current dummy page, ensuring that the account is recorded in the Neon DB
Features Not Implemented/Incomplete
Not fully implemented signup/signin/logout logic (missing some form logic and landing pages)
Screenshots:
Tag Dan and Shayne
@danglorioso @shaynesidman
#33