diff --git a/backend/src/auth/guard/user.guard.ts b/backend/src/auth/guard/user.guard.ts index 32b1bf90..9f2c8729 100644 --- a/backend/src/auth/guard/user.guard.ts +++ b/backend/src/auth/guard/user.guard.ts @@ -12,6 +12,10 @@ export class UserGuard extends AuthGuard('user') { } canActivate(context: ExecutionContext): boolean | Promise | Observable { + const skipUserGuard = this.reflector.get('skipUserGuard', context.getHandler()); + if (skipUserGuard) { + return true; + } return super.canActivate(context); } }