jahnvisahni31 / DesignDeck

web-based design tool built using Next.js. It aims to provide a collaborative design environment where users can create, edit, and share their designs in real-time.
https://design-deck.vercel.app/
MIT License
24 stars 35 forks source link

URGENT!!! Error with Liveblocks Authentication: Access Suspended #85

Open jahnvisahni31 opened 2 days ago

jahnvisahni31 commented 2 days ago

Title: Implement User Authentication with Liveblocks API in Next.js

Description: The current implementation of the Liveblocks integration lacks proper user authentication and authorization. We need to implement a function, getUserFromDB, that retrieves user information from the database using JWT tokens provided in the request headers. This function should verify the JWT token, fetch user details, and integrate seamlessly with the Liveblocks API for user identification.

Acceptance Criteria:

  1. Implement getUserFromDB to extract and verify JWT tokens.
  2. Fetch user information from the database based on the decoded token.
  3. Update the Liveblocks API handler to utilize the retrieved user information for authentication.
  4. Ensure proper error handling and logging.

Please refer to the current integration code for context and any specific user database structure for fetching user details.

mehul-m-prajapati commented 2 days ago

@jahnvisahni31 : I am looking at this one now.

jahnvisahni31 commented 2 days ago

sure you can go ahead