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?
Hello, In a Blazor Server application, I want to refresh the access token using a refresh token when the token expires. How can I do this?
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.
I created a new microservice and also generated a Blazor Server UI project for it. Then, I updated the frontend configuration of this new service in the .abp/suite/appsettings.json file to point to the newly created Pbys.Blazor.Server project instead of the existing microservice Blazor Server project.
However, when I try to build the solution, I get the following error:
Cannot find pbysMenuContributor.cs file! Ensure ..\AbpSolution12\apps\Pbys\AbpSolution12.Blazor.Server\Menus\pbysMenuContributor.cs exists.
I want to use Angular as the frontend technology in a microservice-based project. However, when I generate the project using ABP Suite, the Angular frontend files are not created automatically. What should I do in this case? Could you help me?
I would like to display a warning screen when the session is about to expire, showing the remaining time with a countdown. I also want to show this warning specifically when there are only 30 seconds left. How can I implement this?
When will the new version be released with this issue fixed?