some proper auth

This commit is contained in:
2025-08-15 15:27:24 -05:00
parent 4419dd7acc
commit 1c915d1713
9 changed files with 117 additions and 49 deletions

View File

@@ -6,7 +6,12 @@ import { staticPlugin } from "@elysiajs/static";
const port = env.PORT || 5001;
const app = new Elysia()
.use(cors())
.use(
cors({
origin: "http://localhost:3000",
credentials: true,
})
)
.onRequest(({ request }) => {
console.log(request.method, request.url);
})