We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6382d94 commit 78cf9f3Copy full SHA for 78cf9f3
1 file changed
api-gateway/src/middlewares/auth.middleware.ts
@@ -23,8 +23,12 @@ export function authenticate(
23
res: Response,
24
next: NextFunction
25
) {
26
- // 🔓 Skip authentication for public routes
27
- if (req.path.includes('/public')) {
+ // 🔓 Skip authentication for public routes or pages
+ if (
28
+ req.path.includes('/public') ||
29
+ req.path.includes('/login') ||
30
+ req.path.includes('/register')
31
+ ) {
32
return next();
33
}
34
0 commit comments