nestjs + jwt

gyujae·2022년 1월 28일
0

banana-market-nestjs

목록 보기
2/6


nestjs에 설치되어 있는 jwt module를 사용함


nestjs에 기능 중 guard를 사용하여 gql context에 user를 저장하여 로그인 유무를 확인.


decorator 태그를 사용하여 로그인 된 유저를 사용할 수 있다.

예시)

0개의 댓글