Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders.

Join

support-community

show-and-tell

general

open-source

announcements

auth docs are misleading

https://labs.convex.dev/auth/setup says run npm create convex@latest -> next.js -> convex auth but only options are clerk and none

Customizing default Schema after OAuth login

I'm trying to use the default schema and just update it with a few items: I updated my schema with a new users table and added two fields at the end: ```js ...authTables,...

I'm getting null for getUserIdentity

Any clue why I keep getting null for getUserIdentity. Do I maybe just have something misconfigured? I'm using the next.js stuff ```tsx "use client";...

Convex Auth: Providers not configured

Even I have provided Providers in the auth.ts, there is still error like this
No description

Am I doing this ent query correctly?

``` export const get = authQuery({ args: { orderId: v.id("orders"), },...

Having some issues with getting user response ConvexAuth

I'm running into an issue where the user session is working correctly BUT the user is returning null. Fun fact #1: If I log the client response, the user returns in full. Func fact #2: If I refresh the page, the user retuns null again. ...
No description

Convex Auth Google OAuth

Hello I've tried looking in the docs and can't find any relative to this problem. I'm trying to separate name and last name from Google Auth but when I do this code it doesn't let me login nor create new user. any idea for this? ```typescript...

Latency between Convex runtimes

Is the latency of calls from actions (node runtime) to mutations/queries (convex runtime) negligible?

Does Convex work in a bare React Native app?

Im trying to add Convex to my app but I get this error: ``` error: Error: Unable to resolve module react-dom from /Users/krisidmisso/Work/Ignition/node_modules/convex/dist/cjs/react/client.js: react-dom could not be found within the project or in these directories: node_modules/convex/node_modules node_modules...

Convex auth `signOut` does not delete auth cookies like authJWT and refresh tokens in production

When a user signs out in production with the convex auth signOut function, the auth related cookies are not getting removed from cookie storage, whereas during development mode(on localhost), the cookies gets removed. Because of that after signing out in production if i refresh the page, the users remains as authenticated which is not what one would expect. Even it passes from middleware to protected routes which i believe is because the cookies are still there. Is this expected or do i need t...

Do geographically distant developers experience different errors?

I'm working with a new colleague who is running our Convex app on his local machine in India. He is experiencing errors that I cannot reproduce from the US East Coast. Screenshot attached of a "Server Error Uncaught Error: Query returned no documents". I have never seen such an error. If he runs npm run dev for a Next.js app, and npx convex dev, all on his laptop, does his running of the app somehow cause a different order of operations?...
No description

Convex Auth signaling unauthenticated in RN after inactive

I haven't been able to capture much on this, but I've seen this consistently since migrating to Convex Auth: - After opening the iOS app when it's been in the background, we're redirecting to sign in - The logic currently in place will only do this if both isAuthenticated and isLoading from useConvexAuth() are false. - I've added logic to listen for further changes to these values, and also added a user query that waits for an authenticated user to come back, none of this is working...

Concurrent connections limit

I cannot find online anything related with the limits of realtime db updates. I want to switch from Supabase to Convex but Im not sure if there are any connection limitations. Supabase has this limit to 60

Errors when type inference for custom actions

I have a helper function to try to populate the context with session information for a user, but run into type inference errors. My best guess is that there is some problem with cyclic references. Any advice on how to do these kinds of patterns without forcing "any" somewhere into the code?

Can we optimize this query?

```export const getTrendingFilterTags = query({ args: { platformType: v.string() }, handler: async ({ db }, args) => { const dictionaryCategories = await getManyFrom( db,...

Bandwidth - change table schema

If I change schema to use numbers instead of strings, for example "on" = 1, "off" = 2, "maybe" = 3, will I reduce DB bandwidth?

ts error suddenly from helpers

node_modules/convex-helpers/server/customFunctions.ts:164:45 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'Expand<{ [Property in OptionalKeys<ModArgsValidator>]?: Exclude<Infer<ModArgsValidator[Property]>, undefined>; } & { [Property in Exclude<...>]: Infer<...>; }>'. 164 const added = await inputMod(ctx, split); ~ node_modules/convex-helpers/server/customFunctions.ts:278:45 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'Expand<{ [Property in OptionalKeys<ModArgsValidator>]?: Exclude<Infer<ModArgsValidator[Property]>, undefined>; } & { [Property in Exclude<...>]: Infer<...>; }>'....

How to know if authenticated in next client component?

I'm not sure if I misconfigured next.js and convex auth, but it seems like isAuthenticated never sets true for me. const { isAuthenticated } = useConvexAuth(); console.log("isAuthenticated", isAuthenticated); // always false ...

Insert a record, then another record with the id of the first one in the same transaction

Hello, I have some tables orders and order_products This is the schema: ```ts...

I want to deploy my website that uses convex development environment, how do I deal with SITE_URL?

I use convex auth, there are some variables that is required like SITE_URL. For this I use http://localhost:3000 when running locally, but I want to deploy my site as i.e xyz-test.com how can I manage different SITE_URL in this case?