LANCommander/LANCommander.SDK/Providers
Aaron Powell 2da5aa0aa4 Fix token lost after IOptionsMonitor cache invalidation
TokenProvider.GetToken() was reading solely from settingsProvider.CurrentValue,
which rebuilds from the YAML file after configRefresher.RefreshAsync() calls
OnReload(). Since the settings file save is debounced by 1 second, the rebuilt
Settings object has a null token.

Fix: TokenProvider now keeps a local _cachedToken field that is set immediately
during SetToken() and used as the primary source in GetToken(), falling back
to the settings provider only for tokens loaded from disk (e.g., app restart
with stored credentials).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-21 15:12:57 +11:00
..
AuthenticationProvider.cs Rename SDK services -> clients, implement new configuration, use dependency injection for clients 2025-09-24 20:58:23 -05:00
NetworkInformationProvider.cs Implement SDK using dependency injection 2025-09-22 00:29:51 -05:00
ServerAddressProvider.cs Separate SignalR chat client from RPC client. Create abstraction for getting server address. Implement server-side chat client. 2025-12-23 21:12:06 -06:00
ServerConfigurationProvider.cs feat: Add Avalonia launcher PoC with cross-platform UI 2026-01-19 14:24:49 +11:00
SettingsProvider.cs Fix setting duplication 2026-03-04 23:46:17 -06:00
SteamCmdProfileStore.cs Move Steam integrations to separate assembly, add cmdlets for various Steam actions 2026-01-24 16:37:07 -06:00
TokenProvider.cs Fix token lost after IOptionsMonitor cache invalidation 2026-03-21 15:12:57 +11:00