Unable to use SetAuthenticatedUserContext method in Blazor Server
techierathore opened this issue · comments
S Ravi Kumar commented
Ivan Josipovic commented
Hey,
This package should work fine with Blazor Sever, I think the issue you are experiance is that you are calling the AI JS function from OnInitializedAsync. This is not supported in Blazor server. JS calls need to be ran on OnAfterRenderAsync.
Please review, https://learn.microsoft.com/en-us/aspnet/core/blazor/components/lifecycle?view=aspnetcore-7.0