Implement interceptor concept in chrome extension

I am working on a chrome extension.

I want to implement interceptor concept (that of angular) in chrome extension.

My requirement is all the requests sent from chrome extension must pass through the interceptor. If the session is expired, then the form data should be stored in the local storage and then the when the user will log in again, then at that time the old session will be resumed i.e., the form data will be fetched from the local storage and the request will be sent automatically.

How should I proceed? Can I use chrome.webRequest? If yes, how?

Thanks in advance!