@sd-jwt/core 0.3.2-next.102 → 0.3.2-next.103
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
- package/src/jwt.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var Jwt = class _Jwt {
|
|
|
129
129
|
const header = (0, import_utils.Base64urlEncode)(JSON.stringify(this.header));
|
|
130
130
|
const payload = (0, import_utils.Base64urlEncode)(JSON.stringify(this.payload));
|
|
131
131
|
const data = `${header}.${payload}`;
|
|
132
|
-
const verified = verifier(data, this.signature);
|
|
132
|
+
const verified = yield verifier(data, this.signature);
|
|
133
133
|
if (!verified) {
|
|
134
134
|
throw new import_utils.SDJWTException("Verify Error: Invalid JWT Signature");
|
|
135
135
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -102,7 +102,7 @@ var Jwt = class _Jwt {
|
|
|
102
102
|
const header = Base64urlEncode(JSON.stringify(this.header));
|
|
103
103
|
const payload = Base64urlEncode(JSON.stringify(this.payload));
|
|
104
104
|
const data = `${header}.${payload}`;
|
|
105
|
-
const verified = verifier(data, this.signature);
|
|
105
|
+
const verified = yield verifier(data, this.signature);
|
|
106
106
|
if (!verified) {
|
|
107
107
|
throw new SDJWTException("Verify Error: Invalid JWT Signature");
|
|
108
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/core",
|
|
3
|
-
"version": "0.3.2-next.
|
|
3
|
+
"version": "0.3.2-next.103+a28ae21",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@sd-jwt/crypto-nodejs": "0.3.2-next.
|
|
41
|
+
"@sd-jwt/crypto-nodejs": "0.3.2-next.103+a28ae21"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@sd-jwt/decode": "0.3.2-next.
|
|
45
|
-
"@sd-jwt/types": "0.3.2-next.
|
|
46
|
-
"@sd-jwt/utils": "0.3.2-next.
|
|
44
|
+
"@sd-jwt/decode": "0.3.2-next.103+a28ae21",
|
|
45
|
+
"@sd-jwt/types": "0.3.2-next.103+a28ae21",
|
|
46
|
+
"@sd-jwt/utils": "0.3.2-next.103+a28ae21"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"esm"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "a28ae21d24c2e20f41857f2205c24a2609c10736"
|
|
65
65
|
}
|
package/src/jwt.ts
CHANGED
|
@@ -98,7 +98,7 @@ export class Jwt<
|
|
|
98
98
|
const payload = Base64urlEncode(JSON.stringify(this.payload));
|
|
99
99
|
const data = `${header}.${payload}`;
|
|
100
100
|
|
|
101
|
-
const verified = verifier(data, this.signature);
|
|
101
|
+
const verified = await verifier(data, this.signature);
|
|
102
102
|
if (!verified) {
|
|
103
103
|
throw new SDJWTException('Verify Error: Invalid JWT Signature');
|
|
104
104
|
}
|