Added lots of debugging + token auth

Now you dont have to send your password over the wire every time and can
make do with a token instead. There's lots of debugging info now to make
it easier for me to fix bugs with the server
This commit is contained in:
2026-05-30 18:22:54 -07:00
parent d71b10f89c
commit 8ba58234e0
14 changed files with 260 additions and 77 deletions
@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE tokens
@@ -0,0 +1,7 @@
-- Your SQL goes here
CREATE TABLE tokens (
id SERIAL PRIMARY KEY,
username TEXT NOT NULL,
token TEXT NOT NULL,
expiry BIGINT NOT NULL
)