mirror of
https://github.com/SigNoz/signoz.git
synced 2026-09-25 04:40:50 +01:00
#### Description - `DeleteUser` never told the tokenizer about the deletion. `SoftDeleteUser` removed the `auth_token` rows with raw SQL, so the opaque tokenizer kept serving the deleted user's session from cache until rotation forced a DB read, up to `rotation.interval` later. - The tokenizer eviction now runs before the soft delete, inside one transaction; `SoftDeleteUser` joins the caller's transaction instead of opening its own. - The hourly last-observed-at flush returned an error for any org with nothing to flush because bun rejects an empty `VALUES` slice. It now returns early. - Adds an integration test asserting a deleted user's held token is rejected on the next request. #### Additional Information Only affects the opaque tokenizer; under the JWT tokenizer `DeleteTokensByUserID` is a no-op.