StoicWanderer
StoicWanderer
CCConvex Community
Created by StoicWanderer on 11/19/2023 in #support-community
getUserIdentity problem!
I was trying out a websocket system where i query data from Convex into the UI and I tried using the same browser for two different user instances and Clerk and Convex wans't having it, so i needed to download another browser to test the multi functionality, as i'm devloping a chat for users. So, its all good now. I really hope, But thank you @RJ for offering your help 🙂
6 replies
CCConvex Community
Created by StoicWanderer on 11/19/2023 in #support-community
getUserIdentity problem!
BUMP! Once it's working once it's not. What's the matter here? I keep using if blocks, do i need to use await?
6 replies
CCConvex Community
Created by CodingWithJamal on 11/16/2023 in #support-community
NextJs Server Actions + Convex not working
Hey Michal, I'm having the same issue, what does this actually mean? You mean the ConvexReactClient?
17 replies
CCConvex Community
Created by StoicWanderer on 11/16/2023 in #support-community
What should I define here, if i want to reference another table by ID?
Hey @ian i'm going with setting it with v.optional(), because in my game project the user may or may not be part of an alliance. Thank you for the docs as well.
6 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
Not a problem, glad you figured it out and works after all.
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
Check your JWT template and try using const {sessionClaims} = auth(); if zou are on App Router Next.js
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
Normally, you dont need to specify the {{session.actor}} claim if your are using the Convex default template
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
In Clerk
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
Are you using a JWT template?
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
@RJ this what you expect right?
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
Imo, Convex doesnt differentiate between userId's, only Clerk does, so if you log in with userX impersonating userY then Convex still should return the impersonated userprofile for instance and not the actors id
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
Go ahead ill wait
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
@RJ This is from the official Clerk docs: The act.sub claim is the ID of the impersonator. The sub claim is the impersonated user (user_123), while act.sub contains the ID of the impersonator (user_456).
20 replies
CCConvex Community
Created by RJ on 11/16/2023 in #support-community
User impersonation with Clerk
@RJ I think you mistyped your sentence, why would Convex treat the impersonator as the impersonated user, if there is a sub claim in Clerk, whoich you are using, then your app should open the app as the impersonated user, correct me if I'm wrong.
20 replies
CCConvex Community
Created by StoicWanderer on 11/14/2023 in #support-community
Auth error while using useQuery
I see, why haven't I thought of this. I guess this will solve the issue, thank you @Michal Srb
3 replies
CCConvex Community
Created by StoicWanderer on 11/12/2023 in #support-community
db.patch should leave existing fields unmodified
How can i mark this as solved on mobile?
8 replies
CCConvex Community
Created by StoicWanderer on 11/12/2023 in #support-community
db.patch should leave existing fields unmodified
Thank you so much for this, saved the day!!!
8 replies
CCConvex Community
Created by StoicWanderer on 11/12/2023 in #support-community
db.patch should leave existing fields unmodified
I have a feeling that i misunderstood the docs
8 replies
CCConvex Community
Created by StoicWanderer on 11/12/2023 in #support-community
db.patch should leave existing fields unmodified
It says in the docs that existing fields are overwritten, does that mean the existing fields are being cleared if i dont provide a value when i use db.patch?
8 replies
CCConvex Community
Created by patochem on 11/10/2023 in #support-community
Problems using useQuery inside a Context
It's easier than you think, use only the countryId in the useEffect hook to check for changes and call your useState setter function inside as well, then outside of the useEffect write a conditional check whether your state changed call the useQuery, i think, but you could use a setInterval to check periodically
8 replies