반응형
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 | 29 | 30 | 31 |
Tags
- 백준
- dfs
- 소켓
- Crawling
- Nestjs
- HTTP
- 크롤링
- HTTP 완벽 가이드
- 가천대
- 알고리즘
- 자바스크립트
- 프로그래머스
- 타입스크립트
- dp
- 프로그래머스 레벨 2
- socket
- 그래프
- javascript
- 타입 챌린지
- Algorithm
- 수학
- TCP
- 쉬운 문제
- 문자열
- typescript
- type challenge
- ip
- Node.js
- 레벨 1
- BFS
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