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