Skip to content

Commit

Permalink
Remove debug logging of API key and search parameters in server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 18, 2024
1 parent 271719b commit 4651678
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/cli/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ export async function startServer(options: { port: string; apiKey?: string }) {
if (apiKey) {
const search = new URLSearchParams(req.url.replace(/^[^\?]*\?/, ""))
const hash = search.get("api-key")
console.log({
apiKey,
hash,
search,
s: Array.from(search.entries()),
})
if (req.headers.authorization !== apiKey && hash !== apiKey) {
logError("clients: connection unauthorized")
ws.close(401, "Unauthorized")
Expand Down

0 comments on commit 4651678

Please sign in to comment.