@replyke/core 7.0.0-beta.57 → 7.0.0-beta.59
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/cjs/hooks/crypto/useSignTestingJwt.d.ts +4 -2
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js +3 -2
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/esm/hooks/crypto/useSignTestingJwt.d.ts +4 -2
- package/dist/esm/hooks/crypto/useSignTestingJwt.js +3 -2
- package/dist/esm/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare function useSignTestingJwt(): ({ projectId, privateKey,
|
|
1
|
+
declare function useSignTestingJwt(): ({ projectId, privateKey, userData, }: {
|
|
2
2
|
projectId: string;
|
|
3
3
|
privateKey: string;
|
|
4
|
-
|
|
4
|
+
userData: {
|
|
5
|
+
id: string;
|
|
6
|
+
} & Record<string, any>;
|
|
5
7
|
}) => Promise<string | undefined>;
|
|
6
8
|
export default useSignTestingJwt;
|
|
@@ -46,7 +46,7 @@ function useSignTestingJwt() {
|
|
|
46
46
|
var _this = this;
|
|
47
47
|
var signTestingJwt = function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
|
|
48
48
|
var response, err_1;
|
|
49
|
-
var projectId = _b.projectId, privateKey = _b.privateKey,
|
|
49
|
+
var projectId = _b.projectId, privateKey = _b.privateKey, userData = _b.userData;
|
|
50
50
|
return __generator(this, function (_c) {
|
|
51
51
|
switch (_c.label) {
|
|
52
52
|
case 0:
|
|
@@ -57,8 +57,9 @@ function useSignTestingJwt() {
|
|
|
57
57
|
// Warn developers about the security risks
|
|
58
58
|
console.warn(WARNING);
|
|
59
59
|
return [4 /*yield*/, axios_1.default.post("/".concat(projectId, "/crypto/sign-testing-jwt"), {
|
|
60
|
+
projectId: projectId,
|
|
60
61
|
privateKey: privateKey,
|
|
61
|
-
|
|
62
|
+
userData: userData,
|
|
62
63
|
})];
|
|
63
64
|
case 1:
|
|
64
65
|
response = _c.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSignTestingJwt.js","sourceRoot":"","sources":["../../../../src/hooks/crypto/useSignTestingJwt.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,uDAAsD;AAEtD,IAAM,OAAO,GAAG,siBAUb,CAAC;AAEJ,SAAS,iBAAiB;IAA1B,
|
|
1
|
+
{"version":3,"file":"useSignTestingJwt.js","sourceRoot":"","sources":["../../../../src/hooks/crypto/useSignTestingJwt.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAuC;AACvC,uDAAsD;AAEtD,IAAM,OAAO,GAAG,siBAUb,CAAC;AAEJ,SAAS,iBAAiB;IAA1B,iBAiCC;IAhCC,IAAM,cAAc,GAAG,gEAAO,EAQ7B;;YAPC,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,QAAQ,cAAA;;;;;oBAON,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,2CAA2C;oBAC3C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACL,qBAAM,eAAK,CAAC,IAAI,CAC/B,WAAI,SAAS,6BAA0B,EACvC;4BACE,SAAS,WAAA;4BACT,UAAU,YAAA;4BACV,QAAQ,UAAA;yBACT,CACF,EAAA;;oBAPK,QAAQ,GAAG,SAOhB;oBAED,sBAAO,QAAQ,CAAC,IAAc,EAAC;;;oBAE/B,IAAA,yBAAW,EAAC,KAAG,EAAE,8BAA8B,CAAC,CAAC;;;;;SAEpD,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare function useSignTestingJwt(): ({ projectId, privateKey,
|
|
1
|
+
declare function useSignTestingJwt(): ({ projectId, privateKey, userData, }: {
|
|
2
2
|
projectId: string;
|
|
3
3
|
privateKey: string;
|
|
4
|
-
|
|
4
|
+
userData: {
|
|
5
|
+
id: string;
|
|
6
|
+
} & Record<string, any>;
|
|
5
7
|
}) => Promise<string | undefined>;
|
|
6
8
|
export default useSignTestingJwt;
|
|
@@ -41,7 +41,7 @@ function useSignTestingJwt() {
|
|
|
41
41
|
var _this = this;
|
|
42
42
|
var signTestingJwt = function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
|
|
43
43
|
var response, err_1;
|
|
44
|
-
var projectId = _b.projectId, privateKey = _b.privateKey,
|
|
44
|
+
var projectId = _b.projectId, privateKey = _b.privateKey, userData = _b.userData;
|
|
45
45
|
return __generator(this, function (_c) {
|
|
46
46
|
switch (_c.label) {
|
|
47
47
|
case 0:
|
|
@@ -52,8 +52,9 @@ function useSignTestingJwt() {
|
|
|
52
52
|
// Warn developers about the security risks
|
|
53
53
|
console.warn(WARNING);
|
|
54
54
|
return [4 /*yield*/, axios.post("/".concat(projectId, "/crypto/sign-testing-jwt"), {
|
|
55
|
+
projectId: projectId,
|
|
55
56
|
privateKey: privateKey,
|
|
56
|
-
|
|
57
|
+
userData: userData,
|
|
57
58
|
})];
|
|
58
59
|
case 1:
|
|
59
60
|
response = _c.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSignTestingJwt.js","sourceRoot":"","sources":["../../../../src/hooks/crypto/useSignTestingJwt.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,IAAM,OAAO,GAAG,siBAUb,CAAC;AAEJ,SAAS,iBAAiB;IAA1B,
|
|
1
|
+
{"version":3,"file":"useSignTestingJwt.js","sourceRoot":"","sources":["../../../../src/hooks/crypto/useSignTestingJwt.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,IAAM,OAAO,GAAG,siBAUb,CAAC;AAEJ,SAAS,iBAAiB;IAA1B,iBAiCC;IAhCC,IAAM,cAAc,GAAG,gEAAO,EAQ7B;;YAPC,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,QAAQ,cAAA;;;;;oBAON,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,2CAA2C;oBAC3C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACL,qBAAM,KAAK,CAAC,IAAI,CAC/B,WAAI,SAAS,6BAA0B,EACvC;4BACE,SAAS,WAAA;4BACT,UAAU,YAAA;4BACV,QAAQ,UAAA;yBACT,CACF,EAAA;;oBAPK,QAAQ,GAAG,SAOhB;oBAED,sBAAO,QAAQ,CAAC,IAAc,EAAC;;;oBAE/B,WAAW,CAAC,KAAG,EAAE,8BAA8B,CAAC,CAAC;;;;;SAEpD,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|