Closed hi-hyein closed 4 years ago
{
id: 'number',
displayName: '정혜인',
name: { familyName: '정', givenName: '혜인' },
emails: [ { value: 'address', verified: true } ],
photos: [
{
value: 'https://lh3.googleusercontent.com/-laUJEz72MSk/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclQJfLoKb7UWxIOHQUMDq7PQVdcRA/photo.jpg'
}
],
provider: 'google',
_raw: '{\n' +
' "sub": "number",\n' +
' "name": "정혜인",\n' +
' "given_name": "혜인",\n' +
' "family_name": "정",\n' +
' "picture": "https://lh3.googleusercontent.com/-laUJEz72MSk/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclQJfLoKb7UWxIOHQUMDq7PQVdcRA/photo.jpg",\n' +
' "email": "address",\n' +
' "email_verified": true,\n' +
' "locale": "ko"\n' +
'}',
_json: {
sub: 'number',
name: '정혜인',
given_name: '혜인',
family_name: '정',
picture: 'https://lh3.googleusercontent.com/-laUJEz72MSk/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclQJfLoKb7UWxIOHQUMDq7PQVdcRA/photo.jpg',
email: 'address',
email_verified: true,
locale: 'ko'
}
}
query: {
code: 'number',
scope: 'email profile https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email openid',
authuser: '0',
prompt: 'consent'
},
_passport: {
instance: Authenticator {
_key: 'passport',
_strategies: [Object],
_serializers: [Array],
_deserializers: [Array],
_infoTransformers: [],
_framework: [Object],
_userProperty: 'user',
_sm: [SessionManager],
Authenticator: [Function: Authenticator],
Passport: [Function: Authenticator],
Strategy: [Function],
strategies: [Object]
}
},
user: {
id: 'number',
displayName: '정혜인',
name: { familyName: '정', givenName: '혜인' },
emails: [ [Object] ],
photos: [ [Object] ],
provider: 'google',
_raw: '{\n' +
' "sub": "number",\n' +
' "name": "정혜인",\n' +
' "given_name": "혜인",\n' +
' "family_name": "정",\n' +
' "picture": "https://lh3.googleusercontent.com/-laUJEz72MSk/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclQJfLoKb7UWxIOHQUMDq7PQVdcRA/photo.jpg",\n' +
' "email": "address",\n' +
' "email_verified": true,\n' +
' "locale": "ko"\n' +
'}',
_json: {
sub: 'number',
name: '정혜인',
given_name: '혜인',
family_name: '정',
picture: 'https://lh3.googleusercontent.com/-laUJEz72MSk/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclQJfLoKb7UWxIOHQUMDq7PQVdcRA/photo.jpg',
email: 'address',
email_verified: true,
locale: 'ko'
}
},
authInfo: {}
이메일 중복 여부 URL: /user/exists/email/:useremail
return type : boolean
회원가입시 필요한 profile 정보
를 인자로 담아 /user/join
(회원가입 api)를 요청한다./user/join
에 소셜계정으로 가입할 경우의 로직이 추가로 필요하다.넘어가는 정보들은 객체로 묵어 post로 보내는 것으로 수정할 것
passport-google-oauth20 모듈을 사용하여 직접 구현하여 테스트 하면서 분석,설계 문서 업데이트