@twin.org/web 0.0.1-next.39 → 0.0.1-next.40

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.
@@ -858,7 +858,7 @@ class Jwt {
858
858
  * The default verifier for the JWT.
859
859
  * @param token The token to verify.
860
860
  * @param key The key to verify with.
861
- * @returns True if the signature was verified.
861
+ * @returns The header and payload if verification successful.
862
862
  */
863
863
  static async defaultVerifier(token, key) {
864
864
  core.Guards.stringValue(Jwt._CLASS_NAME, "token", token);
@@ -856,7 +856,7 @@ class Jwt {
856
856
  * The default verifier for the JWT.
857
857
  * @param token The token to verify.
858
858
  * @param key The key to verify with.
859
- * @returns True if the signature was verified.
859
+ * @returns The header and payload if verification successful.
860
860
  */
861
861
  static async defaultVerifier(token, key) {
862
862
  Guards.stringValue(Jwt._CLASS_NAME, "token", token);
@@ -1,4 +1,3 @@
1
- import type { CryptoKey } from "jose";
2
1
  /**
3
2
  * The crypto key for a JWK.
4
3
  */
@@ -80,7 +80,7 @@ export declare class Jwt {
80
80
  * The default verifier for the JWT.
81
81
  * @param token The token to verify.
82
82
  * @param key The key to verify with.
83
- * @returns True if the signature was verified.
83
+ * @returns The header and payload if verification successful.
84
84
  */
85
85
  static defaultVerifier<T extends IJwtHeader, U extends IJwtPayload>(token: string, key: JwkCryptoKey | undefined): Promise<{
86
86
  header: T;
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
- ## 0.0.1-next.39
3
+ ## 0.0.1-next.40
4
4
 
5
5
  - Initial Release
@@ -294,7 +294,7 @@ The key to verify with.
294
294
 
295
295
  `Promise`\<\{ `header`: `T`; `payload`: `U`; \}\>
296
296
 
297
- True if the signature was verified.
297
+ The header and payload if verification successful.
298
298
 
299
299
  ***
300
300
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/web",
3
- "version": "0.0.1-next.39",
3
+ "version": "0.0.1-next.40",
4
4
  "description": "Contains classes for use with web operations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,8 +14,8 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "0.0.1-next.39",
18
- "@twin.org/crypto": "0.0.1-next.39",
17
+ "@twin.org/core": "0.0.1-next.40",
18
+ "@twin.org/crypto": "0.0.1-next.40",
19
19
  "@twin.org/nameof": "next",
20
20
  "jose": "6.0.8"
21
21
  },