Chad MaycumberC
Convex Community3y ago
16 replies
Chad Maycumber

Setting auth on the server

I'm currently using NextJS, tRPC and Clerk to handle some logic outside of convex. Is it possible to set authentication values on the server?

I'm using the convex.setAuth function w/ the Clerk token but I'm running into the following error whenever I try to call a convex function (with or without an auth middleware):

Error: {"code":"Unauthorized","message":"Authentication failed"}
Was this page helpful?