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