Attempting to attach a JWT web token to my outgoing request, I implemented an interceptor approach. However, after adding the interceptor, I encountered an error message stating "ERROR TypeError: Cannot read property 'length' of undefined". The app functions correctly when the interceptor file is removed. https://i.sstatic.net/PJV4U.png
Here is my interceptor class code: