일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- How to Join Tables Without Relations in TypeORM
- Nest.js
- JWT쓰는이유
- ssh 포트 변경
- 맥 포트닫기
- nest jwt
- Nest.js 로그인
- vm ssh 포트 변경
- Nest.js login
- nest login
- vm ssh 포트
- ssh 연결 방법
- nest authentication
- InnerJoinMapOne
- jwt장점
- gcp ssh 포트 변경
- gcp ssh
- gcp ssh vm
- ssh vm연결
- JWT
- vm ssh port
- 맥 포트확인
- vm ssh
- macOS ssh
- port 22: Operation timed out
- local database
- docker mysql설치하기
- 맥 사용하는 포트 확인
- ssh연결
- nest passport
- Today
- Total
목록Nest.js 로그인 (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..