I have a IUserSettings interface to use between Blazor and a Desktop. I have a task in the interface called Task GetUserSettingsAsync(AuthenticationStateProvider authenticationStateProvider). Once the website comes back from Microsoft Entra, I want to populate user settings. I have a UserSettingService class inheriting from IUserSettings to execute GetUserSettingsAsync. I want to execute a query in GetUserSettingsAsync to get the users ID from the database. Then I can inject IUserSettings into other classes and have their user ID. What I tried isn't working. IUserSettings doesn't have the user ID.
I can't upload the project. It is huge.