From 90eb9dea6ddd7b558b534b190727ec3e313ebffc Mon Sep 17 00:00:00 2001 From: jamesschuler Date: Mon, 29 May 2023 22:59:02 -0700 Subject: [PATCH] Remove console.logs --- api/index.ts | 1 + api/src/controllers/auth.controller.ts | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/index.ts b/api/index.ts index 29d2540..9f2d4e9 100644 --- a/api/index.ts +++ b/api/index.ts @@ -18,6 +18,7 @@ app.use(Session.initMiddleware(store, { cookieSetOptions: { httpOnly: true, sameSite: "none", + secure: true, }, })); diff --git a/api/src/controllers/auth.controller.ts b/api/src/controllers/auth.controller.ts index 6fd1186..b7530b4 100644 --- a/api/src/controllers/auth.controller.ts +++ b/api/src/controllers/auth.controller.ts @@ -14,8 +14,6 @@ async function login(ctx: RouterContext) { const meResponse = await getDiscordProfile(request.accessToken!); if (!isNullOrUndefined(meResponse)) { const hashedAccessToken = await hashValue(request.accessToken); - console.error("hashed at"); - console.error("Session missing ", ctx.state.session === undefined); ctx.state.session.set("accessToken", hashedAccessToken); ctx.state.session.set("userId", meResponse!.id);