In my Blazor Server application, I want to redirect the user to the /Account/Login page automatically when the access token expires. Instead of implementing refresh token logic, I prefer to end the session and force the user to log in again.
How can I detect token expiration and trigger a redirect to the login page? For example, is there a recommended way in ABP to handle 401 responses from HTTP requests and redirect accordingly?
Is there a built-in mechanism in ABP for this use case?
Understood, can you please refund the ticket?
The issue is not related to project creation. I can successfully create the project. However, when I try to add a service and create an entity through ABP Suite, the entity is properly added to the initially created Blazor project. But when I try to generate the entity code for a Blazor Server project that I manually added later, I get an error like the one I mentioned earlier.
The error message says that the file pbysMenuContributor.cs cannot be found at ..\AbpSolution12\apps\Pbys\AbpSolution12.Blazor.Server\Menus\pbysMenuContributor.cs. However, this is the original Blazor Server project that was automatically created when the microservice was first generated. I have now created a new Blazor Server project, and I want the code to be generated in this new project instead.
When will the new version be released with this issue fixed?
<PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXTheme" Version="2.2.-" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="2.2.-" />
I will try.
I'm using the Blazorise DatePicker, and in the month section, October appears twice, while November is missing. When selecting the second October, it assigns 11 but displays as October in the Turkish translation. What could be the reason? Was this fixed in later versions?
Well, why am I getting a 401 error?
Yes, it keeps going to this address, and the encrypted part on the right side keeps showing different characters.