Convex Community

CC

Convex Community

Join the community to ask questions about Convex Community and get answers from other members.

Join

support-community

show-and-tell

general

self-hosted

announcements

I need to get the accesstoken and other information from Oauth with Github provider using convexAuth

I am building an app that would rely heaviily on githubs API, i need to be able to get the acess-token when I authenticate my app so that I can call githubs endpoints. Also, why is a user not created when I use a Githubapp just like it is when I use an OAuth App. My app requires users to create repos and do other things that are only available with github apps....

Using clerk node sdk in convex

I have been trying to use the "deleteUser" function offered by clerks node sdk and it doesnt seem to work. Has anyone done this before that can help point me in the right direction? (It looks like a clerk error, so if anyone can review if what im doing makes sense or needs changing, that'd be nice!) Code: ```...

convex with next server actions data fetching problem

i know i need to pass ctx in the frontend component but what exactly is ctx and how to pass it so that my server actions add data to the convex database
No description

Unable to log in

GitHub suspended my account about 10 days ago for reasons I don't know, and I've reached out to them getting no correspondence whatsoever. Because of it, I'm not unable to log in to my Convex dashboard. Convex doesn't support any other login methods. What should I do?

Are there any plans for a convex hosting service?

It would be nice to not have to manage a Netlify/Vercel/Other account.

Http actions VS Actions

Hey guys, I have a question, when I went through the docs, I'm not sure what is the main diff between http actions and actions. Wonder when to use which. 🧐

Convex Auth - /api/auth/ - 404 not found

Getting 404 on client for this API call - http://localhost:3000/api/auth/ Auth type: Phone OTP auth:signIn action is working and I'm able to get the OTP when running from convex dashboard, so I assume server part is fine. ...
No description

Auth Callbacks cannot use indexes when making a db.query()

I am attempting to use an auth callback to populate a table after user creation. This works, however, I need to query this table first to avoid creating duplicate records. Typescript does not accept any queries that include a withIndex(). Unclear whether I am doing something wrong or not? Example: ```Typescript export const { auth, signIn, signOut, store } = convexAuth({...
No description

Batch Patch Error

why is this throwing error ```ts export const updateFeaturedProducts = mutation({ args: {...

Convex Auth with NodeMailer OTP

Hi Team!, Instead of using Resent to send OTP, I want to use NodeMailer, is their any way to implement it?

convex-ents field options default and index

I have been working on setting up my schema using convex-ents and one thing I noticed is that when I am defining a field to give it options, I cannot give it a default as well as an index. Is this intended behavior? The use case is that I would like to increment the userCount each time someone joins a community. I will have to index it to order it by userCount. However, if I don't give it a default, I'll probably end up getting an error somewhere down the road because I'll forget to give it an initial value and try to increment 1 to undefined. .field("userCount", v.number(), { default: 1, index: true })...

Cant get to my convex dashboard

Hey Team, after i click the login button, i keep getting the error seen in the message. Seems like a 500 error. I tried claering cache and tried different browsers as well....
No description

Setting up a custom domain

I'm having trouble following the docs to understand the process of setting up a custom domain for my Convex site. I'm using Cloudflare Pages, and the build and deploy part are working, but the app displays a white page with a console error reading:
Uncaught Error: ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud'.
Uncaught Error: ConvexReactClient requires a URL like 'https://happy-otter-123.convex.cloud'.
...

Video processing

Hi I need to transcode a mp4 into mp3 to get the audio from a video, but since convex is serverless, dont have access to file system, and convex functions are on the cloud so they dont have access to my localhost either, are there any solutions for this? ```javascript export async function extractAudioFromVideo(...

Serializing/deserializing `Request`/`Response` objects in HTTP action

I'm trying to integrate Effect's HTTP API library (it's like Hono, basically) with my Convex HTTP API, but (until someone adds a Convex platform for @effect/platform 🙂) doing so requires me to run the HTTP endpoint handlers in a Node runtime. I'm at the point where I have a function (request: Request) => Response, but if I can't run the handler directly in the HTTP action, maybe I could serialize/deserialize the Request/Response objects? I'm curious whether this has come up before, and...

Use cases for using Tanstack Query and Convex together?

I am very new to Convex so please excuse me if this is a totally obvious question as I'm trying to wrap my head around how to structure my app as I move it over to using Convex. I used Tanstack heavily for a while and the primary reason why I switched over to Convex is because I was a bit tired of managing the cache and making sure everything is real time in my highly reactive app. I've been loving Convex so far because it reduces that processes to just two steps (query -> mutation) and adding new features has become faster. I do love Tanstack query but I felt that convex could really replace most of my use cases for it. I hope this gives you a bit of a background of where I'm coming from. ...

Bug: Console missing CONVEX_DEPLOY_KEY

Hi, I am reviewing a live production Convex app and I notice the console's "Production Deployment Settings" is not showing my CONVEX_DEPLOY_KEY. The app is running in Vercel, so I must have generated it in the past. I am referring to: https://docs.convex.dev/production/hosting/vercel 4. Set up the CONVEX_DEPLOY_KEY environment variable...
No description

Make phone provider a valid credentials provider

Currently if a user wants to sign in using account id and password that were created using phone provider the backend returns an error: "Uncaught Error: Provider phone is not a credentials provider", which I understand considering that there is initially no password set. However one (like me :)) could implement a flow where secret (password) is set retrospectively and thus a phone provider could also be used for credentials, but perhaps only when secret field is actually populated. Is something like that to be expected in the future? Thanks....

Buffered queue race

Objective: Concatenate incoming messages and process them 5 seconds after the last message is received. Solution: Check if a "processing" task is already scheduled. If so, cancel the existing task, concatenate the new message, and reschedule the task. Expectation: Convex should internally handle race conditions in the scheduler, ensuring that no more than one processing task is ever scheduled at a time....

Verifying JWS Signed Payload in Convex httpAction

I am currently working on verifying an Apple App Store notification's signed payload using a public key within a Convex httpAction. Below is a snippet of the code I am using: ```ts import jwt from 'jsonwebtoken'; import { httpAction } from '../_generated/server';...