fix: remove explicit Hono return type to resolve Variables generic mismatch
This commit is contained in:
1 parent
9350ffc68b
commit
3f9602653a
1 file changed
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user