@pagopa/io-react-native-jwt 0.5.0 → 0.6.0
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/README.md +14 -0
- package/lib/commonjs/jwk/index.js +26 -1
- package/lib/commonjs/jwk/index.js.map +1 -1
- package/lib/commonjs/jwt/index.js +49 -3
- package/lib/commonjs/jwt/index.js.map +1 -1
- package/lib/commonjs/types.js +63 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/errors.js +23 -1
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/module/jwk/index.js +25 -0
- package/lib/module/jwk/index.js.map +1 -1
- package/lib/module/jwt/index.js +47 -3
- package/lib/module/jwt/index.js.map +1 -1
- package/lib/module/types.js +56 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/errors.js +20 -0
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/typescript/jwk/index.d.ts +9 -1
- package/lib/typescript/jwk/index.d.ts.map +1 -1
- package/lib/typescript/jwt/index.d.ts +31 -3
- package/lib/typescript/jwt/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +328 -31
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/errors.d.ts +14 -0
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/jwk/index.ts +28 -1
- package/src/jwt/index.ts +58 -5
- package/src/types.ts +43 -32
- package/src/utils/errors.ts +22 -0
package/src/utils/errors.ts
CHANGED
|
@@ -231,3 +231,25 @@ export class JWEInvalid extends JOSEError {
|
|
|
231
231
|
|
|
232
232
|
code = 'ERR_JWE_INVALID';
|
|
233
233
|
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* An error subclass thrown when a JWKSet is invalid.
|
|
237
|
+
*/
|
|
238
|
+
export class JWKSetInvalid extends JOSEError {
|
|
239
|
+
static get code(): 'ERR_JWKS_INVALID' {
|
|
240
|
+
return 'ERR_JWKS_INVALID';
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
code = 'ERR_JWKS_INVALID';
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* An error subclass thrown when a JWK is not found.
|
|
248
|
+
*/
|
|
249
|
+
export class JWKNotFound extends JOSEError {
|
|
250
|
+
static get code(): 'ERR_JWK_NOT_FOUND' {
|
|
251
|
+
return 'ERR_JWK_NOT_FOUND';
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
code = 'ERR_JWK_NOT_FOUND';
|
|
255
|
+
}
|