scandoc-ai-components 0.1.1 → 0.1.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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11798,6 +11798,7 @@ class ServiceConfig {
|
|
|
11798
11798
|
if (isOk) {
|
|
11799
11799
|
this.accessToken = data["access_token"];
|
|
11800
11800
|
this.refreshToken = data["refresh_token"];
|
|
11801
|
+
console.log(this.accessToken);
|
|
11801
11802
|
return this.accessToken;
|
|
11802
11803
|
} else {
|
|
11803
11804
|
console.error("Could not authenticate! Check your static key!");
|
|
@@ -12037,7 +12038,7 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
|
|
|
12037
12038
|
const response = await fetch(`${cfgValues.SCAN_APP_URL}extraction/`, {
|
|
12038
12039
|
method: "POST",
|
|
12039
12040
|
headers: {
|
|
12040
|
-
Authorization: await serviceConfig.getAccessToken(
|
|
12041
|
+
Authorization: await serviceConfig.getAccessToken(true),
|
|
12041
12042
|
Accept: "application/json",
|
|
12042
12043
|
"Content-Type": "application/json"
|
|
12043
12044
|
},
|