From 3a223d0339ca8bee54a94b831e28143e5032a5b2 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 15 Feb 2021 00:54:58 +0100 Subject: [PATCH] test --- packages/dashboard/src/pages/api/accounts/authenticate.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/dashboard/src/pages/api/accounts/authenticate.js b/packages/dashboard/src/pages/api/accounts/authenticate.js index 8549625f..939812f7 100644 --- a/packages/dashboard/src/pages/api/accounts/authenticate.js +++ b/packages/dashboard/src/pages/api/accounts/authenticate.js @@ -3,9 +3,8 @@ import superagent from "superagent"; export default async (req, res) => { if (req.cookies.ory_kratos_session) { try { - const auth = await superagent - .post("http://oathkeeper:4455/login") - .set("cookie", `ory_kratos_session=${req.cookies.ory_kratos_session}`); + const auth = await superagent.post("http://oathkeeper:4455/login"); + // .set("cookie", `ory_kratos_session=${req.cookies.ory_kratos_session}`); res.setHeader("Set-Cookie", auth.header["set-cookie"]); } catch (error) {