@regulaforensics/vp-frontend-face-components 1.1.0 → 1.2.0

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
@@ -2,6 +2,7 @@
2
2
  1. [About](#about)
3
3
  1. [Install via NPM](#npm)
4
4
  1. [Install via CDN](#cdn)
5
+ 1. [Component settings](#settings)
5
6
  1. [Component events](#events)
6
7
  1. [Component response](#response)
7
8
  1. [Component attributes](#attributes)
@@ -78,6 +79,23 @@ Example:
78
79
 
79
80
  Add the name of the component to the html, as in the example above.
80
81
 
82
+ <a name="settings"></a>
83
+ ## Component settings
84
+
85
+ ### face-liveness
86
+
87
+ After passing two stages of verification, the component sends the received data for processing to the API. Using ```headers``` setter you can set HTTP POST method headers.
88
+
89
+ Example:
90
+
91
+ ```javascript
92
+ const component = document.getElementsByTagName('face-liveness')[0];
93
+
94
+ component.headers = {
95
+ Authorization: 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
96
+ }
97
+ ```
98
+
81
99
  <a name="events"></a>
82
100
  ## Component events
83
101