일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- vm ssh 포트 변경
- macOS ssh
- local database
- nest jwt
- nest passport
- ssh연결
- vm ssh port
- gcp ssh vm
- jwt장점
- ssh 포트 변경
- port 22: Operation timed out
- Nest.js login
- How to Join Tables Without Relations in TypeORM
- InnerJoinMapOne
- nest login
- 맥 포트확인
- ssh vm연결
- docker mysql설치하기
- JWT쓰는이유
- vm ssh
- 맥 포트닫기
- ssh 연결 방법
- vm ssh 포트
- JWT
- Nest.js
- 맥 사용하는 포트 확인
- gcp ssh
- nest authentication
- gcp ssh 포트 변경
- Nest.js 로그인
- Today
- Total
목록nest login (2)
Seize the day
[Nest.js] Login Authentication 구현 ( passport + jwt + local strategy ) 사용자인증은 대부분의 애플리케이션에서 필수적인 부분이다. 인증을 처리하는 방법은 다양하지만 Nest.js 공식홈페이지에서 passport를 안내하고 있어 필자는 passport와 jwt를 선택했다. jwt 전략을 nofunfromdev.tistory.com Nest.js로 Login 구현하기 (2) 이전글에서는 데이터베이스에서 사용자를 검색하여 로그인부분까지 구현하였다. 이번글에서는 로그인 성공하고 사용자 정보가 아닌 jwt를 반환하고 API 호출 시 유효한 토큰인지 검증하려고 한다. 패키지 설치 및 모듈 생성 $ npm install --save @nestjs/jwt passpo..
사용자인증은 대부분의 애플리케이션에서 필수적인 부분이다. 인증을 처리하는 방법은 다양하지만 Nest.js 공식홈페이지에서 passport를 안내하고 있어 필자는 passport와 jwt를 선택했다. jwt 전략을 사용 하기 전 passport-local을 먼저 구현하였다. Nest.js로 Login 구현하기 (1) 패키지 설치 및 모듈 생성 $ npm install --save @nestjs/passport passport passport-local $ npm install --save-dev @types/passport-local 패키지를 설치 후 모듈과 서비스를 생성한다. $ nest g module auth $ nest g service auth --no-spec $ nest g module use..