aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-12 19:37:09 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-12 19:37:09 -0400
commiteb2957facbd14b2db8a980bd67e8a96ca1cc212e (patch)
treef8a8ed2f919b9e227f6dd6528b3f504f967ea183 /src/server/index.ts
parent988822bdeeed82b0c1ef611f2f7a3111d029d564 (diff)
parent3c91dd189290a75dc5b05f475115e3f34acf5064 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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!";