We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7055975 + 46e308a commit 6679a3cCopy full SHA for 6679a3c
1 file changed
src/middleware/authentication.ts
@@ -10,13 +10,6 @@ export const requireAuth = (
10
_res: Response,
11
next: NextFunction,
12
) => {
13
- // Development bypass
14
- if (process.env.NODE_ENV === 'development') {
15
- req.user = {
16
- userId: 1,
17
- };
18
- return next();
19
- }
20
21
const authHeader = req.headers.authorization;
22
if (!authHeader || !authHeader.startsWith('Bearer ')) {
0 commit comments