Using AuthJS, how to get current user in route.ts in NextJS.
```
export const getSession = query({
args: {},
handler: async (ctx) => {
const sessionId = await getAuthSessionId(ctx);...
is SITE_URL with multiple domains supported for OTPs?
I have a turborepo with two apps hosted on different domains, both using Resend magic links. In production, I need to send a different SITE_URL for each app while using the same branch. I'm trying to use redirectTo, but it doesn't seem to be accessible on the Convex side. How can I handle this?
Type error when using useSuspenseQuery with convexQuery
In a vanilla Tanstack Start / Convex app, I have a query:
```
export const getUserById = query({
args: {...
Convex Auth error with Nextjs 15
Just upgraded the Convex v1 starter kit to "next": "15.1.3" ( "@auth/core": "^0.37.4") and it showed the following error-
Unhandled Runtime Error
[ Server ] Error: {"code":"InvalidAuthHeader","message":"Could not parse as id token"}...
Cloud backup bandwidth
How does the size of file/database storage relate to cloud backup bandwidth when daily backups are enabled? How much daily bandwidth would be required to back up 1GB of data? From my experience, it seems like backups consume a large amount of bandwidth— is this typical? are there any ways to optimize backup bandwidth?
Ents is in maintenance mode. Should I use it?
"Ents is in maintenance mode. We're open to taking PRs, and will make sure it doesn't break. There will not be active feature development from the Convex team."
Is it OK to use ents? Should I avoid using it if I started a new project?...
implement optimistic updates for a paginated query
How can we implement optimistic updates for a paginated query? Does anyone have an example?
fitness tracking
trying to integrate with https://www.polar.com/accesslink-api/?srsltid=AfmBOooE910RcxJdKHXs5u7sWjpegMxc8yZJQd_HckBMyFSvVUVLhxzP#polar-accesslink-api
and eventually with Garmin as well
wondering if this should integrate with Convex Auth...
Usage Stats API
Hi guys - is there an available API that displays usage stats in a front-end application. It would be nice to be able to fetch user data usage information, so that if I have limits (ie; per subscription plan) that the User could easily go view a dashboard where they could see their usage for the month. Similar to the Dashboard usage stats, but could be implemented specific to individual users.
convex auth on expo password provider error
i was just following along the guide on the docs and suddenly came across this error. can anyone help?

Preview vercel mode error
Does anyone have issues running pull request deployment on vercel?
I get this everytime, but when I merge the pull request, it works!
```...
Convex Helpers build errors
Hey happy new year all, I recently updated my convex-helpers npm package to the latest version (0.1.67), and have been working off of the convex sass starter repo.
I seem to be getting the Type error when running
yarn build
:
```./node_modules/convex-helpers/index.ts:16:22...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
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 itDoes 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.