Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(example): [SIW-1912] update native libraries fixing an issue related to integrity hardware key tag generation #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions example/ios/Podfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"dependencies": {
"@pagopa/io-app-design-system": "^1.43.0",
"@pagopa/io-react-native-crypto": "^0.2.3",
"@pagopa/io-react-native-integrity": "^0.3.0",
"@pagopa/io-react-native-integrity": "^0.3.1",
"@pagopa/io-react-native-secure-storage": "^0.2.0",
"@pagopa/io-react-native-jwt": "^1.2.0",
"@pagopa/react-native-cie": "^1.3.0",
"@react-native-async-storage/async-storage": "^1.24.0",
Expand All @@ -24,7 +25,6 @@
"@types/lodash": "^4.17.7",
"fp-ts": "^2.16.9",
"i18n-js": "^4.4.3",
"io-react-native-secure-storage": "^0.1.1",
"io-ts": "^2.2.21",
"lodash": "^4.17.21",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion example/src/store/storage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as SecureStorage from "io-react-native-secure-storage";
import * as SecureStorage from "@pagopa/io-react-native-secure-storage";
import { type Storage } from "redux-persist";

export const createSecureStorage = (): Storage => {
Expand Down
10 changes: 4 additions & 6 deletions example/src/utils/integrity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generate, sign } from "@pagopa/io-react-native-crypto";
import { sign } from "@pagopa/io-react-native-crypto";
import {
decodeAssertion,
generateHardwareKey,
Expand Down Expand Up @@ -62,11 +62,9 @@ const generateIntegrityHardwareKeyTag = () =>
const key = await generateHardwareKey();
return removePadding(key);
},
android: async () => {
const keyTag = uuid.v4().toString();
await generate(keyTag);
return keyTag;
},
android: async () =>
// Here we generate a random uuid but the key is generated by getAttestation method of io-react-native-integrity package.
uuid.v4().toString(),
default: () => Promise.reject(new Error("Unsupported platform")),
})();

Expand Down
18 changes: 9 additions & 9 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1650,10 +1650,10 @@
resolved "https://registry.npmjs.org/@pagopa/io-react-native-crypto/-/io-react-native-crypto-0.2.3.tgz"
integrity sha512-cXJBwBsPUBxIFoTVXqlVc2zNgUuFPVdtIKu0WUyEGg8ZNOMGT9cRpE/qYx2uTY+hrYxtO8RKH6aXLsF43mYRBA==

"@pagopa/io-react-native-integrity@^0.3.0":
version "0.3.0"
resolved "https://registry.npmjs.org/@pagopa/io-react-native-integrity/-/io-react-native-integrity-0.3.0.tgz"
integrity sha512-K9omm939IhhuKBopdtDsDLeh6k9XZPgf03WlHnuiFtxo2rdfAUlWj8Fq9njpyT0ovmwDfP12PtRYSDFzkYH5Lg==
"@pagopa/io-react-native-integrity@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@pagopa/io-react-native-integrity/-/io-react-native-integrity-0.3.1.tgz#4dc23b221452b4101ea7a5bf35aedbe2e5a3a5fe"
integrity sha512-ZQP58OSLSus8LbFRa8jHtGo2BoR2Jn8lY1SirhBCfk9qo2qLcwRwanZ5T/tzO9inFOaTxPCvPu7uMdSdi8uRUQ==

"@pagopa/io-react-native-jwt@^1.2.0":
version "1.2.0"
Expand All @@ -1663,6 +1663,11 @@
abab "^2.0.6"
zod "^3.22.4"

"@pagopa/io-react-native-secure-storage@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@pagopa/io-react-native-secure-storage/-/io-react-native-secure-storage-0.2.0.tgz#386982f350fcefa7bf8dc56e26ff390a9c94db03"
integrity sha512-nPdYOKa9DAMtmPanIOwyKzOJ6JpBINfLgOp3wzVT7pCOJPRo0FYHBwyt0nxrKufE42rz9z9Sh8K7Y0faB0kuMw==

"@pagopa/react-native-cie@^1.3.0":
version "1.3.0"
resolved "https://registry.npmjs.org/@pagopa/react-native-cie/-/react-native-cie-1.3.0.tgz"
Expand Down Expand Up @@ -3909,11 +3914,6 @@ [email protected], invariant@^2.2.4:
dependencies:
loose-envify "^1.0.0"

io-react-native-secure-storage@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/io-react-native-secure-storage/-/io-react-native-secure-storage-0.1.1.tgz#c1fb28125f6c9f8f1b7436198fab726f4ae790ef"
integrity sha512-ceBQImvJoxGoyD5tDZ9E0SqDb/9CKPSR5XrMfDDBJ5topKDXCUkC9tiuEv/RYhOOzLbaLR7qvvkEtla5fcnHmg==

io-ts@^2.2.21:
version "2.2.21"
resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-2.2.21.tgz#4ef754176f7082a1099d04c7d5c4ea53267c530a"
Expand Down
Loading