@vpdev2/metakyc 1.0.46 → 1.0.48
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/client/index.d.ts +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/session.d.ts +25 -0
- package/dist/client/session.d.ts.map +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +321 -303
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface CreateSessionTokenParams {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
secretKey: string;
|
|
5
|
+
/** Numeric tenant ID (ABP projects). Provide this OR clientId. */
|
|
6
|
+
tenantId?: number;
|
|
7
|
+
/** String client ID (non-ABP projects). Provide this OR tenantId. */
|
|
8
|
+
clientId?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SessionTokenResult {
|
|
11
|
+
accessToken: string;
|
|
12
|
+
expiresInSeconds: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Server-side utility to create a short-lived SDK session token.
|
|
16
|
+
*
|
|
17
|
+
* Call this from your backend (e.g. a Next.js API route or Express endpoint),
|
|
18
|
+
* then pass the returned `accessToken` to the frontend SDK via `getAccessToken`.
|
|
19
|
+
*
|
|
20
|
+
* The API key and secret never leave your server.
|
|
21
|
+
*/
|
|
22
|
+
export declare class MetaKYCSession {
|
|
23
|
+
static createToken(params: CreateSessionTokenParams): Promise<SessionTokenResult>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/client/session.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,cAAc;WACZ,WAAW,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA4BxF"}
|