Files
lemonspace_app/convex/auth.config.ts
Matthias 824939307c feat: enhance canvas functionality with proximity edge handling and improved authentication logging
- Introduced temporary edge styling for proximity connections in the canvas.
- Updated edge synchronization logic to filter out temporary edges during data processing.
- Enhanced authentication logging to provide detailed user identity information when authentication fails.
- Added a new utility function for sanitizing edge handle IDs to ensure compatibility with React Flow.
- Implemented a node handle mapping for proximity connections to streamline edge management.
2026-03-26 10:57:10 +01:00

22 lines
501 B
TypeScript

import type { AuthConfig } from "convex/server";
const issuer = (process.env.CONVEX_SITE_URL ?? process.env.SITE_URL ?? "").replace(/\/$/, "");
if (!issuer) {
throw new Error(
"Missing CONVEX_SITE_URL (or SITE_URL) for Better Auth JWT issuer in convex/auth.config.ts",
);
}
export default {
providers: [
{
type: "customJwt",
issuer,
applicationID: "convex",
algorithm: "RS256",
jwks: `${issuer}/api/auth/convex/jwks`,
},
],
} satisfies AuthConfig;