ggez-banking-sdk 0.2.27 → 0.2.28
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.
|
@@ -38,7 +38,7 @@ declare class CookiesHelper {
|
|
|
38
38
|
GetUSR(): Promise<USR>;
|
|
39
39
|
SetUSR(deviceId: string, userId: string): Promise<void>;
|
|
40
40
|
ValidateUSR(USR: string): Promise<boolean>;
|
|
41
|
-
GetDeviceSecurityCode(): Promise<
|
|
41
|
+
GetDeviceSecurityCode(): Promise<string>;
|
|
42
42
|
GetAccessToken(): Promise<string>;
|
|
43
43
|
SetAccessToken(accessToken: string, expires: number): Promise<void>;
|
|
44
44
|
ValidateAccessToken(accessToken: string): Promise<boolean>;
|
|
@@ -242,8 +242,14 @@ class CookiesHelper {
|
|
|
242
242
|
}
|
|
243
243
|
const { key, iv } = CipherHelper.GenerateByUserID(USR.user_id.toString());
|
|
244
244
|
const DUID = IID + "." + DEK;
|
|
245
|
-
const encryptedJSON = CipherHelper.EncryptAsJson(
|
|
246
|
-
|
|
245
|
+
// const encryptedJSON = CipherHelper.EncryptAsJson(
|
|
246
|
+
// DUID,
|
|
247
|
+
// "device_security_code",
|
|
248
|
+
// key,
|
|
249
|
+
// iv
|
|
250
|
+
// );
|
|
251
|
+
// const { device_security_code } = JSON.parse(encryptedJSON);
|
|
252
|
+
const device_security_code = CipherHelper.Encrypt(DUID, key, iv);
|
|
247
253
|
return device_security_code;
|
|
248
254
|
}
|
|
249
255
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.28",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|