Blitz.js Auth: CTX session not populated in api route called from Next.js middleware
I’m following these docs and I’m trying to add an API route that can access the user session data from Blitz CTX from an API route from Next.js middleware, but the session doesn’t get populated, even though there is a authorised session. If I use the getCurrentUser()
query from a component the correct session data is returned.