![[NestJS] Guards](https://nullisdefined.s3.ap-northeast-2.amazonaws.com/images/e48e6fd88f6339a761df1c6155770ce4.png)
NestJSGuardsAuthentication2025.09.15
[NestJS] Guards
Guard 가드 는 @Injectable 데코레이터로 주석이 달린 클래스이며, CanActivate 인터페이스를 구현합니다. Guard는 단일 책임을 가집니다. 런타임에 존재하는 특정 조건 권한, 역할, ACL 등 에 따라 주어진 요청이 라우트 핸들러에 의해 처리될지 여부를 결정합니다. 이것을 종종 인가 authorization 라고 합니다. 전통적인...