@ututrust/web-components 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,6 +22,19 @@ Find the [repository here](https://bitbucket.org/utu-technologies/utu-trust-sdk)
22
22
  $ npm install @ututrust/web-components
23
23
  ```
24
24
 
25
+ ## Configuration options
26
+
27
+ The SDK can be configured by dispatching an `utuConfig` event. It
28
+ currently supports only one element: `production` (`boolean`).
29
+
30
+ If set to `true`, the SDK will connect to UTU's production API services.
31
+ Otherwise (default), it will connect to UTU API testing services.
32
+
33
+ Use it like so, after the SDK has been loaded:
34
+ ```
35
+ window.dispatchEvent(new CustomEvent("utuConfig", { detail: { production: true } }));
36
+ ```
37
+
25
38
  ## Examples
26
39
 
27
40
  You can find [some working examples in the repository](https://bitbucket.org/utu-technologies/utu-trust-sdk/src/dev/packages/examples.)