Skip to content

Commit

Permalink
fix: expo-secure-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Dec 20, 2024
1 parent b50486f commit a315efa
Show file tree
Hide file tree
Showing 5 changed files with 624 additions and 304 deletions.
3 changes: 2 additions & 1 deletion mpc-core-kit-react-native/mpc-core-kit-expo-ed25519/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router"
"expo-router",
"expo-secure-store"
],
"experiments": {
"typedRoutes": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "@web3auth/mpc-core-kit";
import { Bridge, mpclib, TssFrostLib } from "@web3auth/react-native-mpc-core-kit";
import BN from "bn.js";
import { getItem, setItem } from "expo-secure-store";
import * as SecureStore from 'expo-secure-store';
import { useEffect, useState } from "react";
import { ActivityIndicator, Button, ScrollView, Text, TextInput, View } from "react-native";

Expand All @@ -33,10 +33,10 @@ const verifier = "torus-test-health";
// // setup async storage for react native
const asyncStorageKey = {
getItem: async (key: string) => {
return getItem(key);
return SecureStore.getItemAsync(key);
},
setItem: async (key: string, value: string) => {
return setItem(key, value);
return SecureStore.setItemAsync(key, value);
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- ExpoSecureStore (13.0.2):
- ExpoModulesCore
- ExpoSystemUI (3.0.7):
- ExpoModulesCore
- ExpoWebBrowser (13.0.3):
Expand Down Expand Up @@ -1354,6 +1356,7 @@ DEPENDENCIES:
- ExpoHead (from `../node_modules/expo-router/ios`)
- ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
- ExpoSecureStore (from `../node_modules/expo-secure-store/ios`)
- ExpoSystemUI (from `../node_modules/expo-system-ui/ios`)
- ExpoWebBrowser (from `../node_modules/expo-web-browser/ios`)
- EXSplashScreen (from `../node_modules/expo-splash-screen/ios`)
Expand Down Expand Up @@ -1445,6 +1448,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-keep-awake/ios"
ExpoModulesCore:
:path: "../node_modules/expo-modules-core"
ExpoSecureStore:
:path: "../node_modules/expo-secure-store/ios"
ExpoSystemUI:
:path: "../node_modules/expo-system-ui/ios"
ExpoWebBrowser:
Expand Down Expand Up @@ -1582,6 +1587,7 @@ SPEC CHECKSUMS:
ExpoHead: fcb28a68ed4ba28f177394d2dfb8a0a8824cd103
ExpoKeepAwake: 3b8815d9dd1d419ee474df004021c69fdd316d08
ExpoModulesCore: 831ece8311a489418746925820bbffdda587d6f4
ExpoSecureStore: 060cebcb956b80ddae09821610ac1aa9e1ac74cd
ExpoSystemUI: d4f065a016cae6721b324eb659cdee4d4cf0cb26
ExpoWebBrowser: 7595ccac6938eb65b076385fd23d035db9ecdc8e
EXSplashScreen: 17a656c08a0095be15b620c52e61dfdb665863d2
Expand Down
Loading

0 comments on commit a315efa

Please sign in to comment.