code: remove dead AccessClaims struct in backend/src/auth/claims.rs #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Stale/dead code:
backend/src/auth/claims.rs(AccessClaims)Found while reconciling docs in #4.
backend/src/auth/claims.rsdefines:This struct is not imported or used anywhere in the backend source (it appears only in stale compiler scratch files under
target/). The real access-token claims areClaimsinbackend/src/auth/jwt.rs:No
family_id, nopermissions, notoken_type, nojtion access tokens.Why it matters
It's a latent trap: someone could wire up
AccessClaimsassuming thefamily_id/permissionsfields are populated and enforced, when in fact no such protection exists. It also misled the earlier doc review (see the correction comment on #3).Fix options
My recommendation: delete now. If family/permission claims are needed later they should be designed against the actual sharing model from the #3 ADR, not this stub.
Labels:
bug,docs.Closed via PR #14 (merged).
backend/src/auth/claims.rsis deleted; the JWT ADR's open item is marked done. The liveClaims/RefreshClaimsinbackend/src/auth/jwt.rsare the only definitions.