Question · Angular course · Module 12: Security and Performance
Token in the interceptor
What does authInterceptor (HttpInterceptorFn) do when the server returns status 401?
Answer options
- It immediately deletes the user's account
- It tries to refresh the token via refreshToken(), and logs out on failure
- It ignores the error and retries the request indefinitely
- It reloads the entire page
You can check the correct answer by solving this task in the CodeWorlds game.