oauth map

This commit is contained in:
undefined committed 2020-08-20 08:53:26 +08:00
1 parent 6b92b96225
commit 71de49fc49
15 files changed
+66 -30

No files matched your search

+1
View File
@@ -46,6 +46,7 @@ async function callback({ state, code }) {
.set('User-Agent', 'Hydro-OAuth')
.set('Authorization', `token ${t}`);
const ret = {
_id: `${userInfo.body.id}@github.local`,
email: userInfo.body.email,
bio: userInfo.body.bio,
uname: [userInfo.body.name, userInfo.body.login],