Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 22, 2025

Updated repository documentation to reflect .NET 10 usage and refactored authentication storage to use centralized constants instead of magic strings.

Documentation updates

  • Updated AGENTS.md files to reference .NET 10 instead of .NET 9
  • Corrected Playwright browser installation path from net9.0 to net10.0

Authentication storage refactoring

  • Introduced AuthStorageKeys constants class for centralized storage key management
  • Replaced magic strings throughout CustomAuthStateProvider with named constants
  • Added user caching to localStorage to reduce redundant API calls during auth state checks
  • Implemented stale cache cleanup when cached user doesn't match current userId
// Before
await _localStorage.SetItemAsync("currentUser", user);

// After  
await _localStorage.SetItemAsync(AuthStorageKeys.CurrentUserStorageKey, user);

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI mentioned this pull request Nov 22, 2025
Copilot AI changed the title [WIP] Update repository guidance for .NET 10 usage Clarify .NET 10 guidance and refactor auth storage keys Nov 22, 2025
Copilot AI requested a review from dwarwick November 22, 2025 21:53
@dwarwick dwarwick closed this Nov 22, 2025
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