ConusAI vendor v0.1.0-dev.20261027+9b1131fb
ci / gate (push) Waiting to run

This commit is contained in:
ConusAI vendor v0.1.0-dev.20261027+9b1131fb
2026-10-27 18:05:17 +00:00
commit 3102273ec7
538 changed files with 80203 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// /api/auth/*: the same-origin route from this app's pages to Better Auth on its Convex deployment
// (AUTH_PROVIDER=convex-better-auth). Only the endpoints a sign-in, sign-up, sign-out, password
// change, device revocation or account deletion needs are forwarded, and no bearer comes back
// (@conusai-kit/auth-convex-better-auth's proxy). A deployment that selected another provider has no
// such route.
import { loadAuthConfig } from "@conusai-kit/auth"
import { betterAuthRuntime } from "../../../../src/server/app"
export const dynamic = "force-dynamic"
export const runtime = "nodejs"
async function handle(request: Request): Promise<Response> {
if (loadAuthConfig().provider !== "convex-better-auth") return new Response(null, { status: 404 })
return betterAuthRuntime().proxy(request)
}
export const GET = handle
export const POST = handle