Skip to content

Commit

Permalink
chore: log invalid tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Sep 7, 2024
1 parent 926d77f commit bba6a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/routes/collector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ app.post("/", async (c) => {
const body = await c.req.json();

if (process.env.TRACER_TOKEN && body.token !== process.env.TRACER_TOKEN) {
console.log(`Invalid token: ${body.token}`);
return c.json({ error: "Invalid token" }, 401);
}

Expand Down

0 comments on commit bba6a7c

Please sign in to comment.