Trouble using useQuery and convexQuery with queries that use ctx.auth.getUserIdentity()
useQuery() (from convex/react) or the @convex-dev/react-query package's convexQuery() functions to call query() functions in my Convex API that check ctx.auth.getUserIdentity() as an auth guard mechanism.In other places in my nextjs project (server actions), I can invoke such query functions by adding a third argument with an auth token, like this:
Am I using the wrong approach for auth guarding the query funciton? Or is there some different mechanism for passing a token to the
useQuery() and convexQuery() functions?