- ABP Framework version: v5.0.1
- UI type: Angular (Authorization Code Flow)
- DB provider: EF Core
- Identity Server Separated (Angular): yes
Occasionally when visiting the app after the credentials expire, we get
Error refreshing token in the console. The app then immediately navigates to the login page. After entering credentials, verifying with two factor, and redirecting to the Angular home page, the user is still not logged in. They click login again and must enter credentials and two factor again, and then they are logged in.
Any suggestions for a workaround for this?
Our app is not currently public, but I've included the information below. Let me know if there's anything else that could be helpful.
IdentityTokenLifetime: 300 AccessTokenLifetime: 3600 AuthorizationCodeLifetime: 300 AbsoluteRefreshTokenLifetime: 608400 SlidingRefreshTokenLifetime: 304200
Here is our
environment.tsin case that helps as well:
I couldn't reproduce this problem on my local testing. It is hard to diagnose if it is about the oauth2 library or the oidc configuration with just the browser console log.
Since you get access token validation error, it may be related to the configuration
Can you remove this configuration and see if it works?