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

This commit is contained in:
2026-06-16 00:18:34 -06:00
parent 9350ffc68b
commit 3f9602653a

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) => {