fix: remove explicit Hono return type to resolve Variables generic mismatch
This commit is contained in:
@@ -16,7 +16,7 @@ function refreshExpiresAt(): string {
|
|||||||
return d.toISOString()
|
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 } }>()
|
const app = new Hono<{ Variables: { userId: string; role: string } }>()
|
||||||
|
|
||||||
app.post('/login', async (c) => {
|
app.post('/login', async (c) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user