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

schema validation conflicts too verbose

see screen recording for an example. Would be great if we could see a clearer diff on the conflicting fields vs a full print of the document and schema for a table (which can get very lengthy as you can see)

Convex Auth 'Invalid verifier' on safari

On safari, I am getting 'Invalid verifier' when trying to login using github or google. The authAccounts and users are being created. I have no problem with Chrome, it works as expected. See screen shots, 1st is safari and 2nd is chrome....
No description

Client Bundle Size

Hi, I’m currently evaluating Convex to migrate from a Firebase SPA (Firestore flavor). I have a question about the size of the Convex client JS bundle. How much JS do browsers have to download before starting using Convex?...

[Convex Dashboard] Editing nested field (with union?) is causing an error

Hello team, I think there is an issue with the last Convex update: When I want to edit an union with nested fields in the dashboard (v.union(v.object(), v.object()) it reports an error, even if I respect the schema (in particular, even if I don't do any modification). Example of validator causing an issue: ```...

I noticed something with convex auth

So if a user signs up with email and password and logs out if another user tries to signs up with the same exact email and password it just signs them in automatically why?

As this product becomes more mature, it is important not to break things with the updates.

Updating to "convex": "^1.15.0", caused some cryptic error for me. And I spent some valuable time trying to figure it out. Rolling back and pinning to "convex": "1.14.0" took the error away. Same for "convex-helpers": "0.1.53", showing some error about no bin. Rolling back to "convex-helpers": "0.1.52", also took that error away. We ideally prefer not to pin packages, and have our CI do automatic updates and run test against them. This broke our CI. Thank you....
No description

[ERROR] Could not resolve "node:async_hooks"

Hello, I have this error when trying to run npx convex dev Any idea? ```...

Help with Openai Whipser

so in convex, I'm trying to generate some text to speech using this sdk ```tsx async function generateAudio(text: string) { const mp3 = await openai.audio.speech.create({...

Reporting Possible Security Concerns

Quick question, what's the preferred method for reporting security concerns? Is there an email address with a PGP key I can write to?

Storing app generated images

My app produces ImageBitmap images. What is the best way to store this on convex. Make a blob or convert it to a png in a temp folder an upload it ? Thanks...

[Convex Auth] Middleware on Nextjs

Following https://labs.convex.dev/auth/authz/nextjs After using signIn from useAuthActions by Email OTP (from resend), ```...

[Convex ents] Getting Multiple docs using compound index in the most efficient way

Hello, How would you get a list of document using ents ? ``` photos: defineEnt({ clientId: v.id("organization_clients"),...

how can i access the roomCode and redirect user

``` export const create = mutation({ handler: async ctx => { const game = await ctx.db.insert("games", { roomCode: generateRoomCode(),...

llamaindex ts on convex

Hello, anyone managed to get llamaindex ts working on convex? It looks there is a problem with a dependency tittoken_bg.wasm

Using migration helpers `pretend` and `deprecated` with a zod schema

I'm defining my types primarily in zod and using zodToConvex I'm missing the equivalent of zid for the pretend and deprecated validators...

pdfme esbuild warnings

I am using pdfme to generate PDF in the backend. After importing the libraries, @pdfme/common. I got some warnings saying something wrong with tsconfig. I thought it was just warning but after I tried to import @pdfme/schemas using plugins. Some of the defined functions are undefined. ...
No description

Nextjs Api auth header from external app

Hi everyone, I have a situation I want to call some nextjs api endpoint from my react navtive app, but I don’t want to make the nextjs api endpoint open, I want it authenticated(like passing auth headers to the api call from my mobile app), please how do I do this kind of authentication with convex-auth since convex-lucia-auth is no longer mentained anymore. Thanks...

Auth provider discovery failed

I use convex auth for my authentication. The authentication provider I used is Google oauth. When I sign in with Google, I get GET /api/auth/callback/* 302 on the logs and got the error below on the browser console. [CONVEX FATAL ERROR] Auth provider discovery of https://precious-dachshund-631.convex.site failed Uncaught Error: [CONVEX FATAL ERROR] Auth provider discovery of https://precious-dachshund-631.convex.site failed...

Yarn error when not using Yarn?

I really want to use convex in my new Next.js project but after following the quick start guide I keep running into the same issue when I run "npx convex dev". I'm using npm, not yarn. Does anybody know how to fix this problem? ✘ [ERROR] Could not resolve "convex/server" convex/_generated/server.js:20:7:...

Has anyone an idea how to avoid this Flash when checking if `Authenticated` or `Unauthenticated`?

It could be more of a React thing. My code is looking like this ```ts import { ConvexAuthProvider } from '@convex-dev/auth/react';...