frankcollins3 / Next-Water-App

Happy, Healthy Water Cycling App that tracks user/human fluid intake.
https://next-water-app.vercel.app
1 stars 0 forks source link

emailOrUsername for login with redis cache [2:41pm] #57

Open frankcollins3 opened 11 months ago

frankcollins3 commented 11 months ago

attempting to do: redis -> if (noRedisData) -> graphQL

error: problem is, this app provides the ability for the user to enter either: "username" || "email" alongside password to if this is so, I'd prefer to keep the redis cache as performant and solid with only needed data as possible. if the same user logs in twice but uses: { 1: email } { 2: username } there will be 2 data instead of 1. Screen Shot 2023-07-17 at 2 40 14 PM

proposed approach: 0: strip away the ability to enter username and restrict signup to username

1: allow redis to have 2 data per user for this one route.

frankcollins3 commented 11 months ago

Screen Shot 2023-07-17 at 3 09 54 PM [3:15pm]

frankcollins3 commented 11 months ago

believe this app to be going towards passport rather than localStorage any removing username as a way of logging in. email only. [3:27pm]