87e46130

By: Michael Lynch <git@mtlynch.io>

Consume magic login tokens atomically

Move successful token consumption into a conditional UPDATE so SQLite enforces the unused and unexpired token invariant in the write operation. Keep the follow-up lookup only to preserve distinct error messages for rejected tokens.
Codeberg
configuredevShellbackendbackend-devcheck-bashcheck-frontendcheck-go-formattingcheck-go-test-packagescheck-trailing-newlinecheck-trailing-whitespacediagramdocker-imagee2e-testsgo-testsimport-from-tinybeanslint-sqllittle-momentslittle-moments-devx86_64-linux