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

Custom auth

Hi everyone, I am trying to understand how auth works in convex. I want to implement custom oauth and not use clerk or auth0. What I usually do is I have 2 endpoints per providers....

Convex Auth in production

Hi everyone, I’m deploying my Vite React app to Railway from a GitHub repo with Convex, and I’ve run into an issue. My build script works fine with:
"build": "tsc -b && vite build && npx convex deploy"...

object is not accepted undefined

I have an object in the convex parent Document database that accepts Id<"document"> | undefined, but when I put undefined nothing changes
No description

requestId access

Is there a way to gain access to the requestId in the context? I've dug through the convex-js code and it seems like something might be stubbed out, but I can't seem to figure how to get at it

Does Convex have recommended processes for securing secrets / a secret key management feature?

I'm a hobbyist starting a Convex projects. I haven't seen anything in the documentation that explicitly addresses how secrets should be managed in a Convex backend, although I do see an example "MY_SECRET" environment variable in the docs (https://docs.convex.dev/production/environment-variables) Are Environment Variables the recommended way to store sensitive secret values such as private keys? Are there ways to limit the scope of a secret to only be usable by certain actions / functions / etc? ---...

I recover functions file

I had this project locally but eventually lost but the convex backend is still there how can i recover it in a new project

Is Authenticated function required to integrate convex with clerk?

If so, it should be explicit and emphasized. Common mistakes in my team.

Facing difficulty in setting up Convex on Multiple Projects

I have currenty connected Convex database on my Frontend Nextjs project, Now I have created a new nextjs project for Backend (Admin Dashboard) where we gonna use queries & mutations exhaustively. Can anyone help setup this for us?...

Unable to push deployment config when using @react-pdf/renderer

Hi, I am using @react-pdf/renderer in one of my node actions but having issues in deployment. I have added convex.json file alongside package.json file as follows:...
No description

Dashboard - Act as a User Improvement

Can it be made to toggle the custom data and not reset the data every time you click it? I'm debugging something that requires me to toggle it with valid data....

is there a way to persist env vars of the same preview deployment?

im not sure if im doing sth wrongly, i find that every time i push updated code to the same preview deployment, the env vars are wiped out. is there a way to persist them?

Can't Prepare Convex functions

it keeps showing me this error for a lot of files , i am writing react . The esbuild loader for this file is currently set to "js" but it must be set to "jsx" to be able to parse JSX syntax. You can use "loader: { '.js': 'jsx' }" to do that....

Generic Query and Mutations

My issue is this: I repeat same or quite close things a lot eg. ``` import { useQuery } from 'convex/react'; import { api } from '../../../../convex/_generated/api'; ...

Weird error with TanStack Query

I made this hook to get user info from Convex: ```ts export function useUserProfile() { const { user } = useUser(); const clerkId = user?.id;...

Why is api.users.current showing error

I asked gemini to fix, gemini is also using "api.users.current" in its code. But my vscode is showing error. Here is the picture of error. What is the issue?...
No description

Exclude folder and file names from generated API

I have a file for each query and mutation and the file is named the same as the query/mutation function. This makes the generated API ugly with repeating the function name twice. I searched discord and documentation and to my understanding you are suppose to be able to exclude folders and files from the API generation if you add a underscore to the beginning of the folder or file name. I tried this with both a folder and file but they are still part of the generated API and the underscore is inc...

Is it possible to use the v4 beta of Auth0's Next.js SDK with Convex?

Hello, I am trying to figure out if making a custom integration of Auth0's Beta v4 Next.js SDK would work in Convex Authentication? I did try to make one, the problem is it always show that I am unauthenticated. Is there something I'm doing wrong? Any help is appreciated, thank you. Versions I am using: - "@auth0/nextjs-auth0": "4.0.0-beta.13" - "convex": "^1.17.4"...

Undefined values in indexed queries

How are undefined values handled in an indexed query? I need to write a query like this: .eq(value).eq(undefined).eq(undefined).eq(value) Do these undefined values impact query performance in negative way, or are they treated the same as other data types in Convex?...

Airbyte Convex Destination Connector - 404 Error

Hi, I'm trying to import a json file into Convex via the Airbyte integration Steps to Reproduce: 1. Set up the Convex destination connector in Airbyte. 2. Entered the Convex deployment URL from my Dev account: ...

Convex Auth with Google Provider

I managed to setup the Google provider for the Convex Auth, the problem I am facing is that whenever I try to render some UI based on the user auth state, it seems that is not working, it keeps showing the Google button, here is my code in Nextjs ```js "use client"; ...