Skip to content

Commit

Permalink
Log the gameNameHash
Browse files Browse the repository at this point in the history
gh-250

I'm not finding the cookies
  • Loading branch information
douglasnaphas committed Mar 26, 2022
1 parent a87f4d9 commit 995134f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ exports.handler = async function (event, context, callback) {
logger.log("no cookies");
return { statusCode: 400, body: "Bad request" };
}

logger.log("gameNameHash:");
logger.log(gameNameHash);
const gameCookie = event.headers.Cookie.split(";").find((cookie) =>
new RegExp(`^${gameNameHash}=.`).test(cookie)
);
Expand Down

0 comments on commit 995134f

Please sign in to comment.