Hi ABP Team,
We’re currently experiencing an intermittent issue in our Angular front end where users are being signed out when the access token expires. In some cases, the refresh endpoint is successfully called, yet the application still ends up revoking the session and redirecting the user to the login page.
Once the revoke endpoint is triggered, the entire application performs a full refresh, causing users to lose their current application state. This is particularly problematic for users who are in the middle of completing forms or workflows.
The issue is difficult to reproduce consistently, which makes it challenging to debug.
I was able to review the oauth-module source and noticed that its interceptor does not explicitly attempt to refresh or log out when the token is expired. This suggests that something within the @abp/ng.core module (possibly an interceptor or authentication-related service) may be triggering the revoke endpoint and forcing the redirect.
Unfortunately, I’m unable to access the relevant core module source when attempting to download the package sources.
Would it be possible to obtain access to the @abp/ng.core source code (or at least the portions related to authentication and interceptors) so we can properly inspect and diagnose what is triggering the revoke call?
Your assistance would be greatly appreciated.
Kind regards, Mogau
6 Answer(s)
-
0
- You won’t be able to get the full
@abp/ng.core/@abp/ng.oauthpackage source code from GitHub, because ABP Angular packages are distributed via npm and their full TypeScript sources are not published in theabpframework/abpGitHub repository in a way that SourceBot can retrieve here. - Also, starting with ABP v7+, the OAuth implementation is not in
@abp/ng.core.@abp/ng.coremainly contains abstractions/tokens, and the actual authentication/interceptor behavior is provided by@abp/ng.oauth(which overrides those abstractions). So the component that could be triggering logout/revoke behavior is much more likely in@abp/ng.oauththan@abp/ng.core.
What you can do now (practical debugging path without core sources):
Confirm the initiator of
/connect/revocationin DevTools- In Chrome DevTools → Network → click the
revocationrequest → check the Initiator tab (or “Stack trace” if available). - This usually points to the exact JS bundle + line that invoked it (often something like
main.jsor a chunk file). - With that, you can open the corresponding source in the Sources tab and inspect the function call chain.
- In Chrome DevTools → Network → click the
Search in your built output for “revocation”
- In
dist/(or via DevTools global search), search for:revocation/connect/revocationrevokeTokenlogout
- This typically reveals which library code path triggers the call (even if minified).
- In
Patch/override the logout redirect behavior to prevent full app refresh
- The “full refresh / state reset” is usually caused by a hard navigation to the login page or auth-server end-session endpoint.
- If you identify the service calling revoke/logout, you can override the related “pipe to login” function/provider or replace the auth service in Angular DI so that:
- it does not hard-refresh the SPA
- it navigates using Angular Router (or shows a modal) and preserves draft state
If this is ABP Commercial and you need internal package sources
- Please contact ABP via the official channel so they can evaluate providing the relevant source or a private reference: https://abp.io/contact.
- https://abp.io/docs/latest/framework/ui/angular/oauth-module
- https://abp.io/contact
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
- You won’t be able to get the full
-
0
-
0
Hello,
You can obtain the source code using the Suite tool, as described in the documentation: https://abp.io/docs/latest/suite/source-code You may also find the CLI tool helpful, as it provides related commands for retrieving the source code: https://abp.io/docs/latest/cli#get-source
If you could share the detailed steps to reproduce the issue, we would be happy to assist you further.
Thank you for your cooperation.
-
0
-
0
Thank you for your response. We will investigate this issue further on our end. In the meantime, you can access the source code for the core package at the following link: https://github.com/abpframework/abp/tree/dev/npm/ng-packs/packages/core
-
0
Thank you


