diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-12 19:13:25 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-12 19:13:25 -0400 |
commit | 5b83d8da6c262897dc75ada26f08ed1c46ceb95c (patch) | |
tree | a9770d9b9b3520712f12fb099a99b32cad8f14d0 /src/server/index.ts | |
parent | d7653cab93309717488d51c68c8b1f0db64b949c (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.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!"; |