Skip to content

👤 Integrate User Auth with User Features #562

@LexTruong

Description

@LexTruong

After merging #519, #448, #526, and #527 (user auth, food ratings, food favorites, meal tracker), users should be able to sign in and have their ratings, favorites, and logged meals save to their account.

  1. Use BetterAuth's useSession() to check if the user is currently signed in and the user ID.
  2. Save the ratings, favorites, and logged meals to real user IDs rather than dummy variables.
  3. Users should not be able to rate, favorite, or log meals if they are not logged in.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendRelating to Next.js, PWA

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions