@pagopa/io-react-native-jwt 2.2.1 → 2.2.3

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.
@@ -52,11 +52,11 @@ class IoReactNativeJwt: NSObject {
52
52
  if isECKey(jwk:jwk) {
53
53
  let ecJwk = try ECPublicKey(data: publicKeyJson)
54
54
  let publicKey = try ecJwk.converted(to: SecKey.self)
55
- verifier = Verifier(verifyingAlgorithm: jws.header.algorithm!, key: publicKey)!
55
+ verifier = Verifier(signatureAlgorithm: jws.header.algorithm!, key: publicKey)!
56
56
  } else {
57
57
  let rsaJwk = try RSAPublicKey(data: publicKeyJson)
58
58
  let publicKey = try rsaJwk.converted(to: SecKey.self)
59
- verifier = Verifier(verifyingAlgorithm: jws.header.algorithm!, key: publicKey)!
59
+ verifier = Verifier(signatureAlgorithm: jws.header.algorithm!, key: publicKey)!
60
60
  }
61
61
  _ = try jws.validate(using: verifier!)
62
62
  resolve(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-jwt",
3
- "version": "v2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "Native support for JWT",
5
5
  "source": "src/index",
6
6
  "main": "lib/commonjs/index",