반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- socket
- typescript
- 자바스크립트
- 백준
- Algorithm
- 크롤링
- 프로그래머스
- 가천대
- Node.js
- 레벨 1
- TCP
- 알고리즘
- 수학
- Crawling
- 소켓
- 쉬운 문제
- HTTP 완벽 가이드
- dp
- dfs
- Nestjs
- 그래프
- 문자열
- ip
- HTTP
- type challenge
- BFS
- 프로그래머스 레벨 2
- javascript
- 타입 챌린지
- 타입스크립트
Archives
- Today
- Total
목록JwtAuthGuard (1)
kakasoo
Strategy, AuthGuard에서 에러 커스텀하기
import { BadRequestException, ExecutionContext, Injectable } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { ERROR } from '@root/config/constant/error'; import { DecodedUserToken } from '@root/types'; @Injectable() export class JwtGuard extends AuthGuard('jwt') { handleRequest( err: any, user: any, info: any, context: ExecutionContext, status?: any, ): TUser { if (i..
프로그래밍/NestJS
2023. 1. 29. 23:41