sonda/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 52d1828b46 fix(auth): a token stops working when its account is deleted
SQLite gives the highest user id again after that user is deleted, and an access
token lives for minutes, so the token of a deleted user worked as whoever got the
id next (settings, taste, listens, account).

requireAuth now looks the account up after checking the token and refuses it when
the account is gone, has another name, or was created after the token was signed.
The token carries its issue time for this.

Tests: a unit test of every case, and the real scenario on SQLite (delete the
highest id, create another user, the old token gets 401, the new one works).

Closes #30
2026-11-11 19:25:09 +01:00
..
api fix(auth): a token stops working when its account is deleted 2026-11-11 19:25:09 +01:00
auth fix(auth): a token stops working when its account is deleted 2026-11-11 19:25:09 +01:00
catalog fix(catalog): keep albums apart, align album counts, reject bad search text 2026-11-11 13:47:31 +01:00
config feat(taste): learn what I like from what I listen to 2026-11-11 18:46:58 +01:00
discovery fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
library fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
listening fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00
providers feat(discovery): remove provider data, genres from my files, full rescans 2026-11-11 17:27:29 +01:00
storage fix(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +01:00
streaming feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
taste fix(taste): order by the score, clamp future events, keep tags short 2026-11-11 18:52:08 +01:00
usersettings feat(settings): my own settings, starting with Discover from my listening 2026-11-11 19:16:26 +01:00