Hello,
After I log into the application and the access token expires, the handleError() method is called in endpoint-base.service.ts if I try to make an HTTP call with the same expired access token. When handleError() is called, refreshLogin() is then called which should refresh the access token using the refresh token and keep the user logged in. However, every time handleError is called I get the error "session expired" and it redirects me to the login page. When I call refreshLogin() manually shortly after I am logged in, the access token is refreshed successfully. The issue is when the access token expires, it is not able to refresh the token using handleError(). I also attached an image of the error response when calling refreshLogin().
Any help would be appreciated.
Hello,
After I log into the application and the access token expires, the handleError() method is called in endpoint-base.service.ts if I try to make an HTTP call with the same expired access token. When handleError() is called, refreshLogin() is then called which should refresh the access token using the refresh token and keep the user logged in. However, every time handleError is called I get the error "session expired" and it redirects me to the login page. When I call refreshLogin() manually shortly after I am logged in, the access token is refreshed successfully. The issue is when the access token expires, it is not able to refresh the token using handleError(). I also attached an image of the error response when calling refreshLogin().
Any help would be appreciated.