Skip to content

Commit 78cf9f3

Browse files
committed
fix
1 parent 6382d94 commit 78cf9f3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

api-gateway/src/middlewares/auth.middleware.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ export function authenticate(
2323
res: Response,
2424
next: NextFunction
2525
) {
26-
// 🔓 Skip authentication for public routes
27-
if (req.path.includes('/public')) {
26+
// 🔓 Skip authentication for public routes or pages
27+
if (
28+
req.path.includes('/public') ||
29+
req.path.includes('/login') ||
30+
req.path.includes('/register')
31+
) {
2832
return next();
2933
}
3034

0 commit comments

Comments
 (0)