Introduced Auth0 Integration with Event Edit feature #90
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.
My PR includes changes to the event management functionality, where I particularly focused on the event editing feature and integrating Auth0 for authentication. The most important changes include adding an event editing page, enhancing event display with edit options for admins, and configuring Auth0 for authentication. Furthermore I used the WithPageAuthRequiredAppRouter in order to get auth access to the Event edit option.
Event Editing Feature:
src/app/(site)/editEvent/[id]/page.tsx
: Added a new page for editing events, including form handling, image upload, and event data update logic. Add the WithPageAuthRequiredAppRouter and changes to the button event to display if the user is authenticated or not.Event Display Enhancements:
src/app/(site)/events/page.tsx
: Updated event display to include an edit button for admins, and wrapped the page withUserProvider
to provide user context.src/components/eventData/eventCard.tsx
: Modified theEvent
component to include an edit button and handle click events for navigation.Authentication Configuration:
.env.example
: Added Auth0 configuration settings.src/app/api/auth/[auth0]/route.ts
: Added Auth0 authentication handler.Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #85
Type of change
Please delete options that are not relevant.
Test Configuration:
Checklist: