Skip to content

fix: invalidate user cache after password update#118

Merged
zzswang merged 1 commit into
mainfrom
codex/auth-password-cache-invalidation
Apr 13, 2026
Merged

fix: invalidate user cache after password update#118
zzswang merged 1 commit into
mainfrom
codex/auth-password-cache-invalidation

Conversation

@coderprepares
Copy link
Copy Markdown
Collaborator

@coderprepares coderprepares commented Apr 13, 2026

Summary

  • invalidate the cached user detail entry when POST /users/:userId/@updatePassword succeeds
  • use /users/:userId as the cache key so 204 responses can still delete the concrete cache entry
  • keep password rotation reads aligned with the latest passwordChangedAt

Testing

  • pnpm exec eslint src/user/user.controller.ts
  • pnpm build
  • pnpm test
  • verified locally that GET /users/:id returns the new passwordChangedAt immediately after @updatePassword

@zzswang zzswang merged commit e2aacf6 into main Apr 13, 2026
5 of 8 checks passed
@zzswang zzswang deleted the codex/auth-password-cache-invalidation branch April 13, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants