diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-10-12 19:37:09 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-10-12 19:37:09 -0400 |
commit | eb2957facbd14b2db8a980bd67e8a96ca1cc212e (patch) | |
tree | f8a8ed2f919b9e227f6dd6528b3f504f967ea183 /src/server/index.ts | |
parent | 988822bdeeed82b0c1ef611f2f7a3111d029d564 (diff) | |
parent | 3c91dd189290a75dc5b05f475115e3f34acf5064 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 3 |
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!"; |