Supabase Auth with Next.js

I recently set up my app using this guide:

https://supabase.com/docs/reference/auth-helpers/next-js

I'm redirecting the user to a /login page if they end up on a protected route using withMiddlewareAuth

For some reason, and I've only noticed this today and am trying to figure out what I did, even after the user logs in, you still get redirected to /login, unless you do a refresh of the page. Is this expected behavior? What could be causing it? thanks!
This submodule provides convenience helpers for implementing user authentication in Next.js applications.
Was this page helpful?