Argument of type ‘() => string’ is not assignable to parameter of type ‘string’

I’m trying to implement Auth using HttpInterceptor, using ngrx/store.
reading token from the selector getToken.
But while adding in HTTP request params, key-value pair,
while assigning the value it’s showing the following error. Argument of type ‘() => string’ is not assignable to parameter of type ‘string’

Please see the below URL for the screenshot

Attached screen shot below:

It would be a great help.

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.