@riocrypto/common-server 1.0.783 → 1.0.785
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.
|
@@ -2,6 +2,7 @@ declare class AiPriseClient {
|
|
|
2
2
|
private apiKey;
|
|
3
3
|
constructor(apiKey: string);
|
|
4
4
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
5
|
+
getVerificationResult(sessionId: string): Promise<any>;
|
|
5
6
|
private getCallbackUrl;
|
|
6
7
|
private getRedirectUrl;
|
|
7
8
|
}
|
|
@@ -63,6 +63,16 @@ class AiPriseClient {
|
|
|
63
63
|
return response.data.verification_url;
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
+
getVerificationResult(sessionId) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const response = yield axios_1.default.get(`https://api.aiprise.com/api/v1/get_user_verification_result/${sessionId}`, {
|
|
69
|
+
headers: {
|
|
70
|
+
"X-API-KEY": this.apiKey,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
return response.data;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
66
76
|
}
|
|
67
77
|
const buildAiPriseClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
78
|
const AIPRISE_API_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("AIPRISE_API_KEY");
|