return to test

This commit is contained in:
Karol Wypchlo 2021-02-11 22:54:22 +01:00
parent 104a5159e2
commit d632c29641
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import superagent from "superagent"; import superagent from "superagent";
import { serialize } from "cookie";
export default async (req, res) => { export default async (req, res) => {
console.log(Object.keys(req)); console.log(Object.keys(req));
@ -9,7 +8,7 @@ export default async (req, res) => {
try { try {
const auth = await superagent const auth = await superagent
.get("http://oathkeeper:4455/user") .get("http://oathkeeper:4455/user")
.set("cookie", serialize("ory_kratos_session", req.cookies.ory_kratos_session)); .set("cookie", `ory_kratos_session=${req.cookies.ory_kratos_session}`);
console.log(auth.header); console.log(auth.header);