Skip to content

Commit

Permalink
Disable mirroring CID by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed Sep 19, 2024
1 parent 2b6c5b8 commit f7dba0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CroctProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('<CroctProvider />', () => {
expect(UnderlyingProvider).toHaveBeenCalledWith<[ResolvedProviderProps, any]>(
{
appId: '00000000-0000-0000-0000-000000000000',
disableCidMirroring: true,
cookie: {
clientId: getClientIdCookieOptions(),
userToken: getUserTokenCookieOptions(),
Expand Down Expand Up @@ -104,6 +105,7 @@ describe('<CroctProvider />', () => {
baseEndpointUrl: config.baseEndpointUrl,
defaultFetchTimeout: config.defaultFetchTimeout,
defaultPreferredLocale: config.defaultPreferredLocale,
disableCidMirroring: true,
},
expect.anything(),
);
Expand Down
1 change: 1 addition & 0 deletions src/CroctProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const CroctProvider: FunctionComponent<CroctProviderProps> = props => {
return (
<ReactCroctProvider
appId={appId}
disableCidMirroring
{...getEnvEntryFlag('debug', process.env.NEXT_PUBLIC_CROCT_DEBUG)}
{...getEnvEntry('baseEndpointUrl', process.env.NEXT_PUBLIC_CROCT_BASE_ENDPOINT_URL)}
{...getEnvEntry('defaultPreferredLocale', process.env.NEXT_PUBLIC_CROCT_DEFAULT_PREFERRED_LOCALE)}
Expand Down

0 comments on commit f7dba0c

Please sign in to comment.