Adding Auth0 with the Event Edit feature #104
Open
+511
−128
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.
Description
This pull request introduces several changes to integrate Auth0 authentication and enhance event management capabilities in the application. The most important changes include updating dependencies, adding Auth0 authentication, and implementing a new event editing feature.
Dependency Updates:
@auth/prisma-adapter
to version^2.7.4
and added@auth0/nextjs-auth0
version^3.5.0
inpackage.json
.next-auth
to version^4.24.7
inpackage.json
.Auth0 Authentication:
UserProvider
tosrc/app/layout.tsx
to wrap the application with Auth0 context. [1] [2] [3]src/app/api/auth/[auth0]/route.ts
to handle Auth0 authentication. (src/app/api/auth/[auth0]/route.tsR1-R4)Event Management:
src/app/(site)/editEvent/[id]/page.tsx
with form handling and Firebase integration for updating event data. (src/app/(site)/editEvent/[id]/page.tsxR1-R244)App
component insrc/app/(site)/editEvent/[id]/_app.tsx
to provide Auth0 context to the event editing page. (src/app/(site)/editEvent/[id]/_app.tsxR1-R11)Event Card Component:
Event
component insrc/components/eventData/eventCard.tsx
to include an edit button and handle event clicks.Miscellaneous:
useUser
from Auth0 insrc/app/(site)/events/page.tsx
to manage user authentication state.Fixes #85
Type of change
Please delete options that are not relevant.
Test Configuration:
Checklist: