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> |
||
|---|---|---|
| .. | ||
| AuthenticationProvider.cs | ||
| NetworkInformationProvider.cs | ||
| ServerAddressProvider.cs | ||
| ServerConfigurationProvider.cs | ||
| SettingsProvider.cs | ||
| SteamCmdProfileStore.cs | ||
| TokenProvider.cs | ||