@koraidv/core 1.5.5 → 1.7.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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -66,7 +66,7 @@ declare function getDocumentTypeInfo(type: DocumentType): DocumentTypeInfo;
|
|
|
66
66
|
* SDK Configuration
|
|
67
67
|
*/
|
|
68
68
|
interface Configuration {
|
|
69
|
-
/** API key
|
|
69
|
+
/** API key. Sandbox keys start with `sk_sandbox_`, production with `sk_live_`. */
|
|
70
70
|
apiKey: string;
|
|
71
71
|
/** Tenant ID (UUID) */
|
|
72
72
|
tenantId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare function getDocumentTypeInfo(type: DocumentType): DocumentTypeInfo;
|
|
|
66
66
|
* SDK Configuration
|
|
67
67
|
*/
|
|
68
68
|
interface Configuration {
|
|
69
|
-
/** API key
|
|
69
|
+
/** API key. Sandbox keys start with `sk_sandbox_`, production with `sk_live_`. */
|
|
70
70
|
apiKey: string;
|
|
71
71
|
/** Tenant ID (UUID) */
|
|
72
72
|
tenantId: string;
|
package/dist/index.js
CHANGED
|
@@ -826,7 +826,7 @@ var KoraIDV = class {
|
|
|
826
826
|
this.apiClient = new ApiClient(this.configuration);
|
|
827
827
|
}
|
|
828
828
|
detectEnvironment(apiKey) {
|
|
829
|
-
return apiKey.startsWith("
|
|
829
|
+
return apiKey.startsWith("sk_sandbox_") ? "sandbox" : "production";
|
|
830
830
|
}
|
|
831
831
|
/**
|
|
832
832
|
* Get supported countries and their document types from the API
|
package/dist/index.mjs
CHANGED
|
@@ -782,7 +782,7 @@ var KoraIDV = class {
|
|
|
782
782
|
this.apiClient = new ApiClient(this.configuration);
|
|
783
783
|
}
|
|
784
784
|
detectEnvironment(apiKey) {
|
|
785
|
-
return apiKey.startsWith("
|
|
785
|
+
return apiKey.startsWith("sk_sandbox_") ? "sandbox" : "production";
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
788
788
|
* Get supported countries and their document types from the API
|