I fixed the issue by adding the issuer parameter in the Angular interceptor configuration that adds the token in the API request headers. That way the API can now correctly validate the refreshed tokens.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Issue connecting NextJs APi route NestJs app | 0 | 1165 | March 2, 2023 | |
| Auth0 Access token from next.js is not working in nest.js API returning 401 | 3 | 69 | April 24, 2025 | |
| AuthHttpInterceptor doesn't add token to authorization header - Error 401 unauthorized - Angular | 2 | 3138 | January 13, 2023 | |
| Failed to load resource: the server responded with a status of 401 () in React.js/Nest.js | 10 | 1895 | December 18, 2023 | |
| NextJS Auth0 getAccessToken with refresh token only work for the first time | 1 | 532 | February 12, 2025 |