I’m trying to use SSR in my NextJs app. The goal is to use SSR to fetch data on a table. In this table, some items have public ACL while others do not.
I’m looking into passing the auth info to the server, specifically through the getServerSideProps function. The goal is for users who have ACL permissions to access the private items while limiting regular users to the public ones.
I understand the user session info is saved in window.LocalStorage
and that it isn’t available on the server, is there a way to grab that user session info and send it as a cookie to the backend?
thanks