[RxJS] 핵심 개념 및 활용예시

RxJS 용어

자주 사용할 개념 몇 개만 정리. 자세한건 여기 참고.

Observable

primary type in RxJS.

Observer

consumer

consists of next error complete. if missing one of these elements, the observer is partial observer

Subscription

a contract where a consumer is observing values pushed by a producer

Subject

special type of observable that allows values to be multicasted to many observers

Read more

[NestJS] Google OAuth2 사용

목표

  • NestJS 에서 Google OAuth2 로 API Authentication 구현하기

GCP OAuth 설정

  1. 기존 프로젝트를 사용하거나 새 프로젝트를 하나 생성

  2. API 및 서비스 로 가서 OAuth 동의 화면을 구성

    1. OAuth 동의 화면: 앱 정보를 적당히 넣고, 배포를 위해 도메인 주소를 넣는다.
    2. 범위: 적당히 민감하지 않는 범위로 설정해 준다. 추후 이 부분 Authorization 도 학습 필요!
    3. 테스트 사용자: 본인 구글 이메일 주소를 넣는다.
  3. 사용자 인증 정보 로 가서 OAuth 2.0 클라이언트 ID 를 구성해 준다.

Read more