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.
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:
Implement getUserFromDB to extract and verify JWT tokens.
Fetch user information from the database based on the decoded token.
Update the Liveblocks API handler to utilize the retrieved user information for authentication.
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.
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:
Please refer to the current integration code for context and any specific user database structure for fetching user details.