diff --git a/README.md b/README.md index 60e94bb..7181995 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,3 @@ don't ask -## basic auth - -users: - -- corey -- defunkt -- spike - -password: - -- 888 \ No newline at end of file diff --git a/src/server.tsx b/src/server.tsx index 1e97b87..9f85061 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -1,6 +1,5 @@ import { Hono } from "hono" import { upgradeWebSocket, websocket } from "hono/bun" -import { basicAuth } from "hono/basic-auth" import { uniqueNamesGenerator, adjectives, animals } from "unique-names-generator" type Request = { @@ -31,16 +30,6 @@ const app = new Hono app.get("/health", c => c.text("ok")) -const users = ["corey", "defunkt", "spike"] -const password = "888" - -if (process.env.NODE_ENV === "production") { - app.use(basicAuth({ - verifyUser: (username, pass) => - users.includes(username) && password === pass - })) -} - app.get("/tunnels", c => { return c.html(