6 Replies
im trying to query data in Convex in Next.js layout not sure if im doing it correctly
I want to pass the projectName to the Metadata to show in the browser title
but right now all im getting is null for plan, not sure if im using fetchQuery correctly
Are you using auth in the query? If yes you need to pass in the token explicitly:
(assuming you're using Clerk)
Hey @Michal Srb when i do that i get this
@Hosna Qasmei I think it's
getToken({ template: "convex" }
, what are the args that getToken accepts?yeah
Yes that worked! Thank you @ballingt and @Michal Srb 😄