import { db } from "$lib/server/db"; import { syncSession } from "$lib/server/db/schema"; import * as v from "valibot" import { command, query } from "$app/server"; import sb1 from "$lib/server/sb1"; const init_auth_session = command(async () => { return await sb1.auth.init_auth_session() }) const clear_auth_session = query(async () => { await db.delete(syncSession) }) export { init_auth_session, clear_auth_session }