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

Next 14, Convex Auth Error

Trying out the new Auth. Signin with google works however I have an issue with the signin function. I used the convex auth example from here: https://github.com/get-convex/convex-auth-example/blob/main/src/auth/SignInFormPasswordAndVerifyViaCode.tsx Check the screenshot for the error I get... I can't get the signin function to work. (Sidenote: The auth example in Vanilla react works)...
No description

`completedTime` of scheduled function meta data incorrect

const response = ctx.db.system.get(jobId) The completedTime of response seems to be set incorrectly if the scheduled function calls an internal mutation. Seems to be set correctly if the scheduled function is for an internal action. ```...

Scheduled function incorrect response value (unexpected `jobId` property)

When I run const jobId = await ctx.scheduler.runAfter(...); from a mutation then jobId has the correct type of Id<'_scheduled_functions'> and correct value. However, when I run const jobId = await ctx.scheduler.runAfter(...); from an internal action, then jobId has the correct type of Id<'_scheduled_functions'> but it's value is of type { jobId: Id<'_scheduled_functions'>} (ie it has a nested jobId property). ...

Scheduled function data is no longer compatible makeFunctionReference

I think this happened with 1.13 but haven't gone to any effort to dig into it as its not exactly a big deal. I'm not sure how i could have caused this either, i had to go fix a previously working bit of code i wrote a couple weeks ago. const query = scheduledFunction.name...

Convex Auth - Expo React Native

trying to use convex auth following the instructions https://labs.convex.dev/auth/config/oauth `LOG __clerk_client_jwt was used 🔐...

Help with 3rd party api call in Actions

So i am trying to reach clerk's backend api in a convex action. The action needs a node package so i am using the "use node" at the top of the document where i am defining the action. So the issue now is, the call works just fine but when i return the result of the call, Convex throws an error. However, when i console log the result of the call, it returns the data just as expected. The error i am getting is as follows:...

Working with return validator and a query that enriches data

Hello, In our project, we use relational tables and in a query like the one below, where we wanna enrich video with its related data. We wanna use this new return validation, but find it a bit hard to get the returned object to actually match the validator we define. I'd love to ask for some advice on how to best approach this, as we are looking to do it quite a lot with other pieces of data in our app....

Questions about Convex Auth

- If I want to add a name field and customize the name of the user that gets authenticated, how do I do that? Is that via the createOrUpdateUser callback function? - If I want to provide email/password sign up but you still need to click the confirmation link upon signing up (not when logging in again with email/password) how do I implement this? I see that email/password seems quite straight forward (https://labs.convex.dev/auth/config/passwords#email--password-setup), but how can I implement a mechanism to say "isVerified" in the database for each user to determine whether they've verified their email upon signing up?...

Convex Auth Discord Setup

Im trying to get convex auth to work with discord. I thought i followed everything correctly and i get no errors in the console?...
No description

Clerk authenticates, Convex do user management and features. Convex stores user data

Objective Minimal Clerk Side: Use Clerk primarily for user authentication. Convex for User Data Management: Store and manage all user-related data within Convex. Key Steps Set Up Convex Schema: Define the user schema in Convex to store necessary user data fields. ...

Best practice for large, multi-mutation sequence with convex

I'm trying to create a series of mutation calls to handle the event where the user deletes their account. When a user deletes their account, I need to: - update every thread the user created (recursive scheduled tasks) - update every comment the user created (recursive scheduled tasks) - update user details...

Best practice for testing recursive, potentially costly mutation

I'm nervous as there seems to be no manual kill switch for a recursive mutation call in convex. I've setup basic logic to exit out, however still, I'd appreciate a second look along with some ideas for best practices regarding these costly fns. ``` ...

A Bug with adding documents

when I add a new document from the website, about 500 new lines appear in the editing area, it has been Working earlier it is just not working properly now for some reason. it showed me an error with validating schema earlier in the console but I can't seem to reproduce it. my schema for refrence: ```ts...

next js 14 convex deployment

Hello everyone, I need some help in deploying the convex project with next.js 14 app to production. Here is a error log 22:20:22.363] This information is used to shape Next.js' roadmap and prioritize features....

Apple App review

got the clerk login in for the monorepo working on my app as far as I can tell However, during app review in App Store Connect, I get the following bug Bug description: After we tap on Continue with Google or Continue with Apple, and we authenticate, the app returns to the log in screen. ...

Pagination and Self-Reference

Let's say two users can be friends. To model this, I used the following approach: ```schema.ts const users = defineTable({ ... })...

Schema validation failing for weird reason

Error fetching POST https://.../api/prepare_schema 400 Bad Request: Error: Hit an error while evaluating your schema: [CONVEX] Uncaught TypeError: Cannot read properties of undefined (reading 'fields') [CONVEX] at <anonymous> (../convex/tables/tableViews/tableViews.ts:43:18) Not really sure why this is happening given that I have correct type inference......
No description

Session Handling With Clerk

I am sure there is a solution for this but i don't know how to go about it. I am not currently doing any session handling in my project but I need two use cases where I believe i need to work with sessions. 1. I want to be able to know the number of currently active/online users by finding out the users who currently have an active session....

Pagination, Take on a edge [ents]

I've been browsing and trying to figure out how to handle this for a few days. Basically i have a many to many between wallets and transactions. The only efficient way to get the entire transaction history is to do something like .table('wallets') .getX(wallet._id) .edge('transactions')...

Nested optional search field type error

Given a schema that looks like this: ```ts documents: defineTable({ fieldOne: v.string(),...