CodeZettaInterview Hub

Angular · Interceptors · Senior · Debugging

How can interceptors cause infinite retry loops?

Short Interview Answer

Refreshing tokens on 401 and retrying without guarding refresh failures, or re-entering the same interceptor path.

Detailed Explanation

Use a single-flight refresh, fail-fast on refresh error, and whitelist the refresh URL.

Did you know this answer?