aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-10-12 19:13:25 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-10-12 19:13:25 -0400
commit5b83d8da6c262897dc75ada26f08ed1c46ceb95c (patch)
treea9770d9b9b3520712f12fb099a99b32cad8f14d0 /src/server/index.ts
parentd7653cab93309717488d51c68c8b1f0db64b949c (diff)
parse google user data and use it to provide customized feedback on login
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 86c226a21..010a851bc 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -958,8 +958,7 @@ app.get(RouteStore.readGoogleAccessToken, async (req, res) => {
app.post(RouteStore.writeGoogleAccessToken, async (req, res) => {
const userId = req.header("userId")!;
const information = { credentialsPath, userId };
- const { token } = await GoogleApiServerUtils.ProcessClientSideCode(information, req.body.authenticationCode);
- res.send(token.access_token);
+ res.send(await GoogleApiServerUtils.ProcessClientSideCode(information, req.body.authenticationCode));
});
const tokenError = "Unable to successfully upload bytes for all images!";