I am using the getStream.io React component as follows:
<StreamApp
apiKey='apiKey'
appId='appId'
token='token'
>
<FlatFeed />
</StreamApp>
When I am hard-coding the above values, I do not see any issue and the app works correctly.
However, when I try to pass the token as state variable ( Token is generated on the server side and returned to user on client side on signup/login), I get an exception as follows :
Has anyone else seen this issue before? If yes, how did you get around this issue. Any help is highly appreciated.