Login
4 branches 0 tags
Ben Update issue status to cancelled 5be0ae2 29 days ago 72 Commits
date
2025-12-29T13:31:18.166039604Z
author
ben
email
bennyschulenburg@gmx.de

On thinking some more, I'm thinking of instead using NDJSON with an append-only log file with regular compaction. The idea is to spawn a separate thread with an MPSC channel then send messages from the axum handlers, we then just append lines and update an in-memory datastructure (which we read from disk on startup), example:

{"T":"user","slug":"ben","pw":"argon2..."}
{"T":"session","token":"HASH","user":"ben"}

Then store this as auth.ndjson