Settings
For the face-liveness
component, the server generates a unique identifier for each session before starting a verification process. Using the sessionId
setter you can set a custom value. Make sure that sessionId
is unique for each session.
For example:
const component = document.getElementsByTagName('face-liveness')[0];
component.sessionId = "ID"
After passing two stages of verification, the component sends the received data for processing to the API. Using the headers
setter you can set HTTP POST method headers.
For example:
const component = document.getElementsByTagName('face-liveness')[0];
component.headers = {
Authorization: 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
}