Closed ggneilc closed 1 year ago
Ok, so to start: We need a way to authenticate a user and enables sessions, so that we can continually retrieve the signed in users information. So right now we will work towards narrowing our functions down:
To accomplish this, we are going to use the gorilla library and their sessions package.
current dilemma: implementing gorilla library uses the standard go 'net/http' library which isn't directly compatible with gofibers Fasthttp. We have two options:
I will decide what to use after trying to find a video of gorilla/gofiber working together to see how much effort/overhead it is
turns out fiber just also implements sessions and i didn't see it initially on their documentation...
I know how to do CRUD operations with Users, but we need special ones for Linking each stat entry to a particular day, as well as handling days.