Reset repository to README title only
Approach is changing entirely; clearing prior implementation to start over from a clean slate. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import { NextFunction, Request, Response } from 'express'
|
||||
|
||||
declare module 'express-session' {
|
||||
interface SessionData {
|
||||
userId?: string
|
||||
}
|
||||
}
|
||||
|
||||
export function requireAuth(req: Request, res: Response, next: NextFunction): void {
|
||||
if (req.session.userId == null) {
|
||||
res.redirect('/op')
|
||||
return
|
||||
}
|
||||
next()
|
||||
}
|
||||
Reference in New Issue
Block a user