diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-09 16:53:16 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-09 16:53:16 -0400 |
commit | 70a142b84d01e89b56d027b24e37122fa90fe25b (patch) | |
tree | dd7fe13a72ad01b7a5ac96c54dcd8703a1a09622 /src/server/index.ts | |
parent | 7763ddefcd14986573f9a0010c7691fa4715b94e (diff) |
better authentication feedback, cleanup
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 5da05d9a7..dd44a0ce8 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -862,7 +862,7 @@ app.post(RouteStore.googleDocs + "/:sector/:action", (req, res) => { }); }); -app.get(RouteStore.readGooglePhotosAccessToken, async (req, res) => { +app.get(RouteStore.readGoogleAccessToken, async (req, res) => { const userId = req.header("userId")!; const token = await Database.Auxiliary.GoogleAuthenticationToken.Fetch(userId); const information = { credentialsPath, userId }; @@ -872,7 +872,7 @@ app.get(RouteStore.readGooglePhotosAccessToken, async (req, res) => { GoogleApiServerUtils.RetrieveAccessToken(information).then(token => res.send(token)); }); -app.post(RouteStore.writeGooglePhotosAccessToken, 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); |