11 lines
395 B
TypeScript
11 lines
395 B
TypeScript
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
|
|
// The component's database functions over the locally installed schema.
|
|
import { createApi } from "@convex-dev/better-auth"
|
|
import { createAuthOptions } from "../auth"
|
|
import schema from "./schema"
|
|
|
|
export const { create, findOne, findMany, updateOne, updateMany, deleteOne, deleteMany } = createApi(
|
|
schema,
|
|
createAuthOptions,
|
|
)
|