StoicWandererS
Convex Community3y ago
17 replies
StoicWanderer

How to make authenticated calls to mutations and queries?

Hello people,

I am creating a game in next.js and using Convex for it, plust Clerk for website authentication.
My question is, tha do i need to check or make authenticated calls for mutations and queries, when for exmaple I want to send the Chat messages, users will write in the Chat functionality, to Convex database?
Does the ctx.auth object have other possibilities other than getUserIdentity? Or maybe I'm viewing it from the wrong angle, about how to use authentication in Convex queries and mutaitons.
If so, is there an exmaple for this, which could help me wrap my head around it?
Was this page helpful?