Is it possible to pass information stored from localStorage or Cookies to getStaticPaths and getStaticProps in next, the API that holds the data of the content I need, needs me to pass in the current logged-in user's id to be able to fetch the data I want
getStatisPaths and getStaticProps is run at build time. You cant use cookies. You can use getServerSideProps.
Provided req middleware in getServerSideProps -
The req in the context passed to getServerSideProps provides built in middleware that parses the incoming request (req). That middleware is:
`req.cookies` - An object containing the cookies sent by the request. Defaults to `{}`