Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Auth0 with the Event Edit feature #104

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

yashksaini-coder
Copy link

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:

  • Updated @auth/prisma-adapter to version ^2.7.4 and added @auth0/nextjs-auth0 version ^3.5.0 in package.json.
  • Updated next-auth to version ^4.24.7 in package.json.

Auth0 Authentication:

Event Management:

Event Card Component:

  • Enhanced Event component in src/components/eventData/eventCard.tsx to include an edit button and handle event clicks.

Miscellaneous:

  • Imported useUser from Auth0 in src/app/(site)/events/page.tsx to manage user authentication state.

Fixes #85

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@MAVRICK-1 MAVRICK-1 self-requested a review January 17, 2025 19:48
@MAVRICK-1
Copy link
Member

@yashksaini-coder can you upload a video recording with the pr

@MAVRICK-1
Copy link
Member

@yashksaini-coder coz it's not working for me and also update your branch

@yashksaini-coder
Copy link
Author

@MAVRICK-1 I have worked on integrating the auth0 with the Next.js CSR side using the withPageAuthRequired method and add it to the Edit Event page to update the Event details

auth0.integration.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

[FEATURE] Auth0 Integration and allow Event data edit button to admin users only
2 participants