mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复tsconfig
This commit is contained in:
1 parent
a5886ecb99
commit
e8ba53e8ec
17 files changed
+85
-66
No files matched your search
@@ -21,7 +21,7 @@ async function callback({
|
||||
const { UserFacingError } = global.Hydro.error;
|
||||
if (error) throw new UserFacingError(error);
|
||||
const [
|
||||
[appid, secret, url, proxy],
|
||||
[appid, secret, url, proxyUrl],
|
||||
s,
|
||||
] = await Promise.all([
|
||||
system.getMany([
|
||||
@@ -30,7 +30,7 @@ async function callback({
|
||||
token.get(state, token.TYPE_OAUTH),
|
||||
]);
|
||||
const res = await superagent.post('https://oauth2.googleapis.com/token')
|
||||
.proxy(proxy)
|
||||
.proxy(proxyUrl)
|
||||
.send({
|
||||
client_id: appid,
|
||||
client_secret: secret,
|
||||
|
||||
Reference in new issue
Block a user