refactor: improve layout and backend monitoring functionality - Streamlined the layout component in Svelte for better readability and consistency. - Enhanced the backend monitoring functions by updating argument structures and improving code clarity. - A #10

Merged
killer-cf merged 15 commits from feat-better-auth into master 2025-11-08 22:27:29 +00:00
44 changed files with 4488 additions and 476 deletions
Showing only changes of commit 6f4df44a00 - Show all commits

View File

@@ -4,20 +4,21 @@ import { components } from "./_generated/api";
import { type DataModel } from "./_generated/dataModel"; import { type DataModel } from "./_generated/dataModel";
import { query } from "./_generated/server"; import { query } from "./_generated/server";
import { betterAuth } from "better-auth"; import { betterAuth } from "better-auth";
import authSchema from "./betterAuth/schema"; // import authSchema from "./betterAuth/schema";
const siteUrl = process.env.SITE_URL!; const siteUrl = process.env.SITE_URL!;
// The component client has methods needed for integrating Convex with Better Auth, // The component client has methods needed for integrating Convex with Better Auth,
// as well as helper methods for general use. // as well as helper methods for general use.
export const authComponent = createClient<DataModel, typeof authSchema>( export const authComponent = createClient<DataModel>(components.betterAuth);
components.betterAuth, // export const authComponent = createClient<DataModel, typeof authSchema>(
{ // components.betterAuth,
local: { // {
schema: authSchema, // local: {
}, // schema: authSchema,
} // },
); // }
// );
export const createAuth = ( export const createAuth = (
ctx: GenericCtx<DataModel>, ctx: GenericCtx<DataModel>,