Auth0 Organisations in next.js

I’ve switched to a next.js project and trying to get this thing to work but it just doesn’t want to cooperate!

I’ve followed the same guide as I did for a CRA project and It worked absolutely fine, I was able to persist my organization login state between page loads.

Does anyone have any ideas on what I have to do differently to get this to work in a next.js project?

The guide I followed: Authentication services for SaaS companies