Replies: 1 comment 2 replies
-
You can pass options to const App = ({ children }) => (
<InstantSearch
searchClient={searchClient}
indexName={indexName}
insights={{
insightsInitParams: {
userToken: 'mytoken',
},
}}
>
{children}
</InstantSearch>
); If the value is available after initialisation, you can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When setting insights to true in instantsearch.
<InstantSearch searchClient={searchClient} indexName={indexName} insights={true} >
How am i able to pass a custom user token coming from cookies to this like what was achievable using the insights middleware
Beta Was this translation helpful? Give feedback.
All reactions