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