#Next 14 middleware auth

3 messages · Page 1 of 1 (latest)

zealous sorrel
glossy remnant
#

what was the question ? i have a issue with nextjs 14 on my production build

in dev mode evertyhing in working great but in production ( vercel + clerk ) there is a weird behavior, everything on the client side is working ( useConvexAuth from convex/react, useSignIn from clerkjs/nextjs ) but in the nextjs middleware i'm not logged in, so every private route is redirected to home page

#

afterAuth(auth, req, evt) from the authmiddleware return a empty object for the auth arg