This commit is contained in:
archer
2023-07-20 10:01:45 +08:00
parent 62ee28b130
commit 75c8c42530
8 changed files with 33 additions and 20 deletions

View File

@@ -23,9 +23,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
}
// google auth
process.env.SERVICE_GOOGLE_VER_TOKEN &&
global.systemEnv.googleServiceVerKey &&
(await authGoogleToken({
secret: process.env.SERVICE_GOOGLE_VER_TOKEN,
secret: global.systemEnv.googleServiceVerKey,
response: googleToken,
remoteip: requestIp.getClientIp(req) || undefined
}));