Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(insights): update default version to support authenticatedUserToken #1225

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

dhayab
Copy link
Member

@dhayab dhayab commented Dec 11, 2023

This PR sets updates the search-insights dependency and the version retrieved at runtime to the current latest. This gives the ability to set authenticatedUserToken subsequently without requiring users to manually load the library.

@dhayab dhayab requested review from a team, sarahdayan and aymeric-giraudet and removed request for a team December 11, 2023 10:58
Copy link

codesandbox-ci bot commented Dec 11, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit badacc1:

Sandbox Source
@algolia/autocomplete-example-github-repositories-custom-plugin Configuration
@algolia/autocomplete-example-instantsearch Configuration
@algolia/autocomplete-example-playground Configuration
@algolia/autocomplete-example-preview-panel-in-modal Configuration
@algolia/autocomplete-example-react-renderer Configuration
@algolia/autocomplete-example-starter-algolia Configuration
@algolia/autocomplete-example-starter Configuration
@algolia/autocomplete-example-reshape Configuration
@algolia/autocomplete-example-vue Configuration

Comment on lines 315 to 317
if (!userToken) {
return undefined;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're checking whether userToken is defined in l. 181 so we shouldn't have to check it again, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, thanks! I've updated the code.

@dhayab dhayab merged commit 3e4c180 into next Dec 19, 2023
9 checks passed
@dhayab dhayab deleted the feat/insights-update-default-version branch December 19, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants