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

self-hosted

announcements

Getting "No auth provider found matching the given token" with Convex Password Auth

I'm running basic Svelte Kit + Convex Dev locally, I have configured environment variables in my convex dev deployment and I'm even getting what seems to be a valid JWT token out of signIn action Since I'm not using Next and Svelte doesn't have a more automatic token store/retrieve/refresh mechanism yet, I set up the fetchTokens function as instructed in the site (and even though it isn't as automatic, it still seems pretty straightforward to configure, props for gud API design); However, with all that when the API calls it's Authenticate passing the token I got from login, I get a "No auth provider found matching the given token" error and then the websocket literally dies and stops retrying and the refresh token api call never resolves or rejects Anyone have any light to shed?...
No description

Deploying Convex in a Turborepo

I've been following along the guide to deploy Convex to Vercel. Owing to the fact that my repository is a turborepo, I'm finding the deployment instructions a bit confusing. I used Better T-Stack to create my repository. This means that the Convex directory is structured as such: ``` todo/ ├── apps...

Auth0 custom claims

I am using auth0 with convex, is there a way to get custom data when calling getUserIdentity, specifically something like roles, thanks in advance.

Convex auth + Electron

Have anyone tried to implement Convex auth in electron?

Restoring Backup Stuck Importing

I've been trying to restore a backup for about 2 days. It's stuck on: Restoring from a backup: Importing "authSessions" Not really sure what to do to get past this?...

How can I import only specific tables and their associated storage files from a Convex backup ZIP?

Hi Convex team! I have a backup ZIP from my dev deployment and I’d like to import only specific tables and their associated files (from storage) into my prod deployment. I see that importing individual tables via npx convex import --table ... doesn’t handle storage files, and the docs mention that manual changes to the ZIP for partial imports are possible but undocumented. Could you advise on the best way to import just certain tables and their related storage files, or help me with the process? Thanks!...

Convex storage GZIP compression

Hey guys! So, right now I'm storing a whole bunch of JSON files in my Convex storage that are all 300Kb-1Mb. They are highly repetitive, and compression would decrease the size drastically. Any suggestions on how to do this? Should I just GZIP them before uploading in my Convex function, and then un-GZIP before returning them to the client?...

Polar Component

Hi Guys, I am using Polar component to handle the subscriptions, and I want to trigger onSubscriptionUpdated, when I tried it, it's not working this is my code : polar.registerRoutes(http, { path: "/polar/events",...

Deploy to Vercel Failure

I'm trying to deploy my Convex Chef app to Vercel but the deployment build keeps failing with the log Error: Command "npx convex deploy --cmd 'npm run build'" exited with 1. I've followed the guide on the docs but still face this issue

Query returns empty in production Next.js

I have a Next.js app integrated with Clerk and deployed on vercel and a query used on server and client side. `export const getLines = query({ args: { document_id: v.id("documents"),...

[convex-auth] How to get GitHub access token and set additional scopes? (repo & contents)

I would like to create subcells for GitHub using their Octokit library and reuse the access token that Convex auth received during the user's sign-in at my app. Also, I would like to specify which scopes should be requested for the GitHub provider ("rep" & "contents"). Is there a simple way to achieve this without reimplementing the createOrUpdateUser functionality from scratch as a callback?...

Deploying convex and astro on github pages with github action

I am looking at the Custom Domains & Hosting and it explains how to manually deploy to github pages. I am currently deploying to gh pages using a github action, I am using the withastro/action@v3 action to do the deployment. So I am unsure on how to do the step that says to run npx convex deploy --cmd 'npm run build' I am never runing npm run in the gh action. how am I supposed to do this? ...

Lost 4 hours today to that "You can mark the path "convex/server" as external" error

Please add it to known issues in the documentation, this was grueling. The only thing needed is to delete .pnpm.cjs A simple search in your support channel shows many people struggle with this step...

ConvexTestingHelper causes all web sockets to fail with InternalServerError

Since I can’t use convex-test to connect to a remote backend I have used ConvexTestingHelper. However any time I use ConvexTestingHelper is fails with “WebSocket closed with code 1011: InternalServerError”.

Error: q implicitly has an 'any' type, & Type instantiation is excessively deep and possibly infinit

Hi guys, I'm pretty new to convex, and I have no idea why this is happening, would be really nice if someone could explain these to me: There's two errors, Type instantiation is excessively deep and possibly infinite. this one is on alooott of random functions, and I checked out the circular type inference stuff, and the error is still there, the other error is Parameter 'q' implicitly has an 'any' type.ts(7006) this one I spent a while with the convex ai thing on the site, and online, couldnt find anything...
No description

No auth provider found

since around yesterday, my already working auth setup suddenly broke and now I can’t use auth at all. The setup is custom JWT using better auth JWKS ``` Uncaught Error: No auth provider found matching the given token at async <anonymous> (../../convex/chat_http_action.ts:60:13)...

Tech stack

I want to build a gym and food tracker, it will be web and mobile. So is convex really good for apps like this? And for monorepos.

convex shows generic error

I am receiving this generic error. How can I move forward? ✖ Error: Unable to start push to [app] | ✖ Error fetching POST http://.... 400 Bad Request: InvalidSchemaExport: Hit an error while pushing: [app] | Hit an error while evaluating your schema:...

Netlify Detected a non-production build environment and "CONVEX_DEPLOY_KEY" for a production Convex

I set the convex deploy key to the convex prod key in netlify. What could be causing this?