Error 401 on Angular-NestJs page when refreshing token

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.