Design Patterns · Middle · Question 10 of 75

Which pattern do axios interceptors or fetch wrappers implement?

Explanation

Interceptors add a token, log, refresh the session on 401, transform errors - each is responsible for its own step and passes the request on. Order matters and should be fixed explicitly.

Further reading

Problem with a question

Design Patterns · Middle · question 10

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz