구글 패스포트1 Node.js] 구글 패스포트로 사용자 인증 Google Cloud Platform 하나의 계정으로 모든 Google 서비스를 Google Cloud Platform을 사용하려면 로그인하세요. accounts.google.com 여기서 사용자 인증 정보를 만들고 클라이언트 ID, Secret을 발급받는다. 리디렉션 URL 설정 구글 Stragety를 설정. config/passport/google.js var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; var config = require('../config'); module.exports = function(app, passport) { return new GoogleStrategy({ clientID: config.goo.. 2020. 2. 10. 이전 1 다음