From 3f9602653a87ac9835277de01c957af31ba2dc9e Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 16 Jun 2026 00:18:34 -0600 Subject: [PATCH] fix: remove explicit Hono return type to resolve Variables generic mismatch --- server/routes/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/auth.ts b/server/routes/auth.ts index ab8690c..1667920 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -16,7 +16,7 @@ function refreshExpiresAt(): string { return d.toISOString() } -export function createAuthRouter(db: Database, jwtSecret: string): Hono { +export function createAuthRouter(db: Database, jwtSecret: string) { const app = new Hono<{ Variables: { userId: string; role: string } }>() app.post('/login', async (c) => {