mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
oauth map
This commit is contained in:
1 parent
6b92b96225
commit
71de49fc49
15 files changed
+66
-30
No files matched your search
@@ -43,6 +43,8 @@ async function callback({
|
||||
await token.del(state, token.TYPE_OAUTH);
|
||||
this.response.redirect = s.redirect;
|
||||
return {
|
||||
// TODO use openid
|
||||
_id: payload.email,
|
||||
email: payload.email,
|
||||
uname: [payload.given_name, payload.name, payload.family_name],
|
||||
viewLang: payload.locale.replace('-', '_'),
|
||||
|
||||
Reference in new issue
Block a user