From 03e44dee780cbaa941dbb28f828d5761f8146b20 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 2 Oct 2025 11:07:47 -0700 Subject: [PATCH] Feat: Login endpoint with session cookie creation --- functions/api/login.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 functions/api/login.js diff --git a/functions/api/login.js b/functions/api/login.js new file mode 100644 index 0000000..223204b --- /dev/null +++ b/functions/api/login.js @@ -0,0 +1,23 @@ +const json=(d,o)=>new Response(JSON.stringify(d),{...o,headers:{'Content-Type':'application/json',...(o?.headers||{})}}); +const tsEq=(a,b)=>{let d=a.length^b.length;for(let i=0;i