upaas/internal/service/auth
user 97a5aae2f7 simplify: replace mutex + ON CONFLICT with a single DB transaction
Remove the sync.Mutex and CreateUserAtomic (INSERT ON CONFLICT) in favor
of a single DB transaction in CreateFirstUser that atomically checks for
existing users and inserts. SQLite serializes write transactions, so this
is sufficient to prevent the race condition without application-level locking.
2026-02-15 21:41:52 -08:00
..
auth_test.go fix: prevent setup endpoint race condition (closes #26) 2026-02-15 21:35:16 -08:00
auth.go simplify: replace mutex + ON CONFLICT with a single DB transaction 2026-02-15 21:41:52 -08:00