You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove GetClaimsFromContext function and migrate all usages to
IdentityFromContext pattern following the authentication unification
completed in d32f2bf.
Changes:
- Remove GetClaimsFromContext() from pkg/auth/context.go
- Update all test files to use IdentityFromContext() and access
identity.Claims directly when needed
- Remove dedicated GetClaimsFromContext test functions
- Remove unused jwt imports from test files
Rationale:
GetClaimsFromContext was added as a backward-compatibility helper during
the Identity struct unification. All production code has migrated to
using IdentityFromContext directly, with zero production usages
remaining. Tests should verify the actual production API contract.
Impact:
- Removes ~130 lines of code (function + tests)
- Simplifies the auth API to a single pattern
- All tests pass with improved clarity
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments