Hi, I am trying to set up an app with nextjs 13 (with app router) and supabase, and setting up authentication for log in/log out with private page routes.
I managed to set up a basic POC app using
@supabase/auth-helpers-nextjs and
@supabase/supabase-js.
The problem is that when I log in, the cookie created is readable by javascript on the browser. (i.e. type "document.cookie" in the console.).
Where can I change the cookie options such as httpOnly, secure, maxAge, etc. so that the cookie cannot be read by the front end,etc.?
I am not sure if this is nextjs or supabase settings.
Just for your refence, here is my repo
https://github.com/nfabacus/supabase-nextjs13-example-app.
Thank you in advance. 🙂