Skip to content

MpqM/NestJS_Auth

Repository files navigation

Auth

⚪ About Project

  • 유저생성, 조회, 전체조회, 수정, 삭제, 전체삭제기능 API 사용자 모듈, Sqlite DB를 이용
  • 파이프로 유효성검증(Validataion Pipe, Guard, class-validator), Guard를 통한 핸드러 메서드 전 인증검증
  • 로그인, 회원가입 API 인증모듈에서 쿠키, 세션과 PassPort(Strategy, Session Serializer)을 사용한 인증 구현
  • OAuth2.0을 활용한 구글 로그인 인증, GoogleAuthGuard를 통해 세션 사용

⚪ Running Screen || Video

Nest Logo

⚪ Built With

typescript sqlite postman


⚪ Getting Started

# prerequisites: npm, node, sqlite viewr vscode extension
# execution
git clone https://github.com/MpqM/NestJS_Auth.git
cd {project}
npm install
npm run start
# test
http://localhost:3000/auth/logingoogle
http://localhost:3000/auth/testloginsession

⚪ Description

  • 유저, 인증 모듈, 가드

  • 페스포트와 세션을 사용한 인증 과정

  • 로그인부터 세션 저장까지 순서도
  • OAuth 프로토콜 흐름, 엑세스 토큰 만료시 리프레시 토큰을 통한 재발행
  • 구글 OAuth 구현 순서
  • GoogleAuthGuard의 동작 순서도

⚪ Writer


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published