https://console.cloud.google.com/
프로젝트 생성
https://developers.google.com/identity/protocols/oauth2/web-server#sample-oauth-2.0-server-response
https://accounts.google.com/o/oauth2/v2/auth?
scope=https%3A//www.googleapis.com/auth/drive.metadata.readonly&
access_type=offline&
include_granted_scopes=true&
response_type=code&
state=state_parameter_passthrough_value&
redirect_uri=https%3A//oauth2.example.com/code&
client_id=client_id
https://www.passportjs.org/packages/passport-google-oauth20/
https://velog.io/@youngkiu/NestJS-Guards-passport-kakao 와 비슷하게 진행한다.
$ npm install passport-google-oauth20
구현 코드: https://github.com/youngkiu/nestjs-kakaologin/tree/dc9fd7f24d469af50c7cc09e55b7ac92e4bb4473
Mixpanel 결과도 확인해 보았습니다.
참고)