mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix oauth id
This commit is contained in:
4 files changed
+15
-3
No files matched your search
@@ -47,7 +47,7 @@ export default class LoginWithGithubService extends Service {
|
||||
.set('Accept', 'application/vnd.github.v3+json')
|
||||
.set('Authorization', `token ${t}`);
|
||||
const ret = {
|
||||
_id: userInfo.body.id,
|
||||
_id: userInfo.body.id.toString(),
|
||||
email: userInfo.body.email,
|
||||
bio: userInfo.body.bio,
|
||||
uname: [userInfo.body.name, userInfo.body.login].filter((i) => i),
|
||||
|
||||
Reference in new issue
Block a user