aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-10-17 14:29:02 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-10-17 14:29:02 -0400
commit369f5d5e5619b5ecddba4c44a6d134f3444ca544 (patch)
treee4ab8bb80ae5785bfaf264a726cb2bc90fb699da /src
parent37fa239403f58de77a5c860ff53909dc624beae0 (diff)
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/server/index.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 70add4ab2..c7eece703 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -553,7 +553,6 @@ async function PreliminaryFunctions() {
method: Method.GET,
subscription: RouteStore.getUserDocumentId,
onValidation: ({ res, user }) => res.send(user.userDocumentId),
- onUnauthenticated: ({ res }) => _permission_denied(res)
});
router.addSupervisedRoute({
@@ -849,9 +848,6 @@ async function PreliminaryFunctions() {
method: Method.GET,
subscription: RouteStore.readGoogleAccessToken,
onValidation: async ({ user, res }) => {
- if (!user) {
- return res.send(undefined);
- }
const userId = user.id;
const token = await Database.Auxiliary.GoogleAuthenticationToken.Fetch(userId);
const information = { credentialsPath, userId };
@@ -866,9 +862,6 @@ async function PreliminaryFunctions() {
method: Method.POST,
subscription: RouteStore.writeGoogleAccessToken,
onValidation: async ({ user, req, res }) => {
- if (!user) {
- return res.send(undefined);
- }
const userId = user.id;
const information = { credentialsPath, userId };
res.send(await GoogleApiServerUtils.ProcessClientSideCode(information, req.body.authenticationCode));
@@ -884,9 +877,6 @@ async function PreliminaryFunctions() {
subscription: RouteStore.googlePhotosMediaUpload,
onValidation: async ({ user, req, res }) => {
const { media } = req.body;
- if (!user) {
- return res.send(undefined);
- }
const userId = user.id;
if (!userId) {
return _error(res, userIdError);