feat: scaffold Hono server with auth and health check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sanju Sivalingam
2026-02-17 14:07:19 +05:30
parent 1e9e1f7e29
commit bc014fd587
9 changed files with 126 additions and 0 deletions

11
server/src/auth.ts Normal file
View File

@@ -0,0 +1,11 @@
import { betterAuth } from "better-auth";
import { apiKey } from "better-auth/plugins";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "./db.js";
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
}),
plugins: [apiKey()],
});