File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ class InsightsHelper
28
28
/** @var int */
29
29
public const ALGOLIA_USER_TOKEN_MAX_LENGTH = 64 ;
30
30
31
+ /** @var int */
32
+ public const ALGOLIA_USER_TOKEN_DEFAULT_LIFETIME = 15768000 ; // 6 months
33
+
31
34
/** @var string */
32
35
public const QUOTE_ITEM_QUERY_PARAM = 'algoliasearch_query_param ' ;
33
36
@@ -165,7 +168,7 @@ public function setAuthenticatedUserToken(Customer $customer): string|null
165
168
public function setNonAuthenticatedUserToken (): void
166
169
{
167
170
$ metaData = $ this ->cookieMetadataFactory ->createPublicCookieMetadata ()
168
- ->setDuration ($ this -> configHelper -> getCookieLifetime () )
171
+ ->setDuration (InsightsHelper:: ALGOLIA_USER_TOKEN_DEFAULT_LIFETIME )
169
172
->setPath ('/ ' )
170
173
->setHttpOnly (false )
171
174
->setSecure (false );
You can’t perform that action at this time.
0 commit comments