chore: remove dead AccessClaims struct (#5) #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/5-remove-dead-claims"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes #5.
backend/src/auth/claims.rswas orphaned dead code:auth/mod.rsnever declaredmod claims, so the file wasn't compiled into the crate at all. It defined two structs:AccessClaims— referenced nowhere. A latent trap: it carriedfamily_id/permissionsfields that suggested enforcement that doesn't exist. (Discovered during the Phase B doc review; filed as #5.)RefreshClaims— a duplicate of the liveRefreshClaimsinjwt.rs, which is whatJwtServiceactually uses.Deleted the whole file. The live
ClaimsandRefreshClaimsinbackend/src/auth/jwt.rsare unaffected and remain the only definitions.Also updated the JWT ADR to mark the open item done and note the removal historically (so future readers don't go looking for the file).
Verification
cargo build+clippy --all-targets --all-features -D warnings+fmt --checkall clean — as expected, since the file wasn't compiled. No behavior change.Tiny, mechanical cleanup. No CI risk beyond the workflow running.