Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-10-19 20:19:02 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
4d17191c7a4183618e4f5680a7a9d869cef2783b
4d17191c
2 parents
62f11aa4
b28e64ab
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
server/src/api/auth/auth.ctrl.js
server/src/api/auth/auth.ctrl.js
View file @
4d17191
...
...
@@ -318,12 +318,19 @@ exports.socialRegister = async ctx => {
const
result
=
await
axios
.
get
(
url
,
{
headers
:
{
Authorization
:
`Bearer
${
accessToken
}
`
,
'Content-type'
:
'application/x-www-form-urlencoded;charset=utf-8'
,
},
});
console
.
log
(
result
);
const
{
email
,
profile
}
=
result
.
data
.
kakao_account
;
return
{
userId
:
email
,
userNm
:
profile
.
nickname
,
contact
:
`
${
email
}
_등록되지않은 번호`
,
birth
:
'등록되지않음'
,
};
return
result
;
}
:
()
=>
null
;
...
...
@@ -410,12 +417,11 @@ exports.socialLogin = async ctx => {
const
result
=
await
axios
.
get
(
url
,
{
headers
:
{
Authorization
:
`Bearer
${
accessToken
}
`
,
'Content-type'
:
'application/x-www-form-urlencoded;charset=utf-8'
,
},
});
console
.
log
(
result
);
return
result
;
return
result
.
data
.
kakao_account
.
email
;
}
:
()
=>
null
;
...
...
Please
register
or
login
to post a comment