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);