fix: remove explicit Hono return type to resolve Variables generic mismatch

This commit is contained in:
xuyue committed 2026-06-16 00:18:34 -06:00
1 parent 9350ffc68b
commit 3f9602653a
1 file changed
+1 -1
+1 -1
View File
@@ -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) => {