BakemonoHouseB
Convex Community2y ago
30 replies
BakemonoHouse

fetchQuery fails inside clerkMiddleware (clerk/nextjs)

I'll add a screenshot once I land, as I just found this issue right before boarding a flight.

It seems that fetchQuery fails (with or without token added) when called inside the new clerkMiddleware (replacing their authMiddleware).

Anyone have experience with fetchQuery inside nextjs middleware? I've checked the auth().getToken({ template: "convex" }) returning a proper token.
Was this page helpful?