For background: I have an interceptor that clones a request and inserts a bearer token, I want to add another field to this
id with a value I grabbed from an
eventEmitter in another class:
I have value but I can’t pass it to the interceptor like I would to a component via html. Is there a way to do this?
I don’t know details but it looks like you need to use
Firstly set your item into local/session storage and then get it, in the interceptor.
Please just consider for security precautions and search for which storage type is proper for you.
Answered By – AbdurrahmanY