Skip to content

HTTP Request Customization in TypeScript

For js/ts platforms, you can use requestHeaders propetry which accepts a map of strings.

If you want to intercept HTTP requests, make sure to set requestHeaders before startLiveness or matchFaces:

var authorization = "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYWNlLXNkayI6IkhhdmUgYSBncmVhdCBkYXkhIn0.IPoW0D0LnMv_pL4U22MuIhDNGIdK34TaHhqhKBAaBEs"
FaceSDK.instance.requestHeaders = {"Authorization": authorization}