Next JS Protected Routes

I'm trying to protect routes using auth-helpers however when I login, supabase.auth.user() on the client side shows I'm logged in but I have to wait a few mins before I can access protected routes.
I'm new to web dev but I think it might be something to do with the login not being processed on the server side?
Any help would be much appreciated.
Was this page helpful?
Next JS Protected Routes - Supabase