You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`appId`| string | Yes | None | The ID of the application you set up on Croct. |
505
-
|`debug`| boolean | No |`false`| If `true`, turns on debug mode, which logs helpful messages to the console. |
506
-
|`track`| boolean | No |`true`| If `true`, enables the automatic event tracking on initialization. |
507
-
|`clientId`| string | No | None | The ID of the client using the application. |
508
-
|`token`| string\|null | No | None | The JWT token issued by Croct. If `null`, clears any token specified on previous calls. |
509
-
|`userId`| string | No | None | The ID of the user logged into the application. Internally, the SDK will issue a token using the specified ID as the subject claim of the token. The `token` and `userId` options are mutually exclusive. |
510
-
|`tokenScope`| string | No |`global`| Defines how the SDK should synchronize the token across multiple tabs, see [token scopes](#token-scopes) for more details. |
511
-
|`eventMetadata`| JSON | No | None | Any additional information that may be useful to include as part of the event metadata. A common use case is to record the version of the application for future reference. |
512
-
|`logger`| object | No | None | A custom logger to handle log messages. By default, all logs are suppressed. |
513
-
|`urlSanitizer`| function | No | None | A function to sanitize URLs that allows removing sensitive information from URLs, such as tokens, that should not be sent to the platform. |
514
-
|`trackerEndpointUrl`| string | No | None | The URL of the tracker service, used by Croct's development team for testing purposes. |
515
-
|`evaluationEndpointUrl`| string | No | None | The URL of the evaluation service, used by Croct's development team for testing purposes. |
516
-
|`bootstrapEndpointUrl`| string | No | None | The URL of the bootstrap service, used by Croct's development team for testing purposes. |
502
+
| Option | Type | Required | Default Value | Description |
|`appId`| string | Yes | None | The ID of the application you set up on Croct. |
505
+
|`debug`| boolean | No |`false`| If `true`, turns on debug mode, which logs helpful messages to the console. |
506
+
|`track`| boolean | No |`true`| If `true`, enables the automatic event tracking on initialization. |
507
+
|`clientId`| string | No | None | The ID of the client using the application. |
508
+
|`token`| string\|null | No | None | The JWT token issued by Croct. If `null`, clears any token specified on previous calls. |
509
+
|`userId`| string | No | None | The ID of the user logged into the application. Internally, the SDK will issue a token using the specified ID as the subject claim of the token. The `token` and `userId` options are mutually exclusive. |
510
+
|`tokenScope`| string | No |`global`| Defines how the SDK should synchronize the token across multiple tabs, see [token scopes](#token-scopes) for more details. |
511
+
|`eventMetadata`| JSON | No | None | Any additional information that may be useful to include as part of the event metadata. A common use case is to record the version of the application for future reference. |
512
+
|`logger`| object | No | None | A custom logger to handle log messages. By default, all logs are suppressed. |
513
+
|`urlSanitizer`| function | No | None | A function to sanitize URLs that allows removing sensitive information from URLs, such as tokens, that should not be sent to the platform. |
514
+
|`baseEndpointUrl`| string | No | None | The base URL to use for the API calls. By default, the SDK will use the production endpoint. |
515
+
|`cidAssignerEndpointUrl`| string | No | None | The URL to use for the client ID assignment. By default, the SDK will use the production endpoint. |
517
516
518
517
#### Code Sample
519
518
@@ -758,6 +757,7 @@ These are the currently supported options:
|`fallback`|JSON|No|Thevaluereturnedwhentheevaluationfails. Ifnotspecified, thefunction will throw an exception in case of failures. |
762
762
| `timeout` | number | No | The maximum evaluation time in milliseconds. Once reached, the evaluation will fail. |
763
763
| `clientId` | string | No | A UUID v4 that uniquely identifies the client across multiple evaluations. You should generate this identifier on your server-side using a random, cryptographically secure generator and ensure it doesn't change throughout the user journey (e.g. storeincookies). If not specified, the evaluation will run in an anonymous context. |
@@ -809,6 +809,7 @@ These are the currently supported options:
0 commit comments