sinyya / sns-login-vuejs

node, passport, vue, vuex, vue-router
0 stars 1 forks source link

UserInfoError: Invalid Credentials #7

Open sinyya opened 4 years ago

sinyya commented 4 years ago

Google 로그인 시 UserInfoError: Invalid Credentials Error

시도해본것들......

  1. Client, Secret 체크 완료.
  2. API 및 서비스 사용 설정 완료. -- Contacts API -- Google Drive API -- Google+ API
  3. google oauth 2.0에서 refreshToken을 받기 위해 accessType: 'offline' , approvalPrompt: 'force' 추가 완료.
  4. passport-google-oauth20로 변경
  5. google callbackurl을 직접 입력
sinyya commented 4 years ago

참고: Google 인증 서버는 SSL(HTTPS)을 통해서만 액세스할 수 있고 HTTP 연결을 거부하므로 Google 인증 서버로 전송하는 요청은 http 대신 https를 사용해야 합니다.