Skip to content

Commit

Permalink
debuggin
Browse files Browse the repository at this point in the history
  • Loading branch information
johtso committed Apr 7, 2024
1 parent 29976bc commit 95354ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const generateValidator =
.join(", "),
);
const jwt = extractJWTFromRequest(request);

console.log("jwt", jwt);
console.log("cf-access-jwt-assertion", request.headers.get("Cf-Access-Jwt-Assertion"));
console.log("cf_authorization", request.headers.get("CF_Authorization"));
const parts = jwt.split(".");
if (parts.length !== 3) {
throw new Error("JWT does not have three parts.");
Expand Down

0 comments on commit 95354ae

Please sign in to comment.