mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 00:22:43 -05:00
fix: code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { DatabaseSync } from "node:sqlite";
|
||||
import { betterAuth } from "better-auth";
|
||||
import { getMigrations } from "better-auth/db/migration";
|
||||
import { DatabaseSync } from "node:sqlite";
|
||||
|
||||
const database = new DatabaseSync(":memory:");
|
||||
const baseURL = process.env.BASE_URL || "http://localhost:3000";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createServer } from "node:http";
|
||||
import { DatabaseSync } from "node:sqlite";
|
||||
import { betterAuth } from "better-auth";
|
||||
import { getMigrations } from "better-auth/db/migration";
|
||||
import { toNodeHandler } from "better-auth/node";
|
||||
import { DatabaseSync } from "node:sqlite";
|
||||
|
||||
export async function createAuthServer(
|
||||
baseURL: string = "http://localhost:3000",
|
||||
|
||||
Reference in New Issue
Block a user