Skip to content

RNEncryptedStorageError: An error occured while removing value #133

Description

@devsynschismo

Steps to reproduce
This error logs when user open the app and the web3auth is starting init

Code:

import * as WebBrowser from '@toruslabs/react-native-web-browser'
import EncryptedStorage from 'react-native-encrypted-storage'

const chainConfig = getEvmChainConfig(0x1, clientId)!
const privateKeyProvider = new EthereumPrivateKeyProvider({
  config: {
    chainConfig
  }
})
const initWeb3auth = new Web3Auth(WebBrowser, EncryptedStorage, {
  clientId,
  network,
  redirectUrl,
  loginConfig: {...},
  privateKeyProvider
})

Versions:

"react-native": "0.74.5",
"@web3auth/base": "^9.7.0",
"@web3auth/ethereum-provider": "^9.7.0",
"@web3auth/react-native-sdk": "^8.1.0",
"react-native-encrypted-storage": "^4.0.3",

Smartphone (please complete the following information):

  • Device: iPhone
  • OS: iOS 16,17,18,26

Note:
I found that bug came from "react-native-encrypted-storage"
link issue: emeraldsanto/react-native-encrypted-storage#116

in the web3auth document, it only supported "EncryptedStorage" and "SecureStore"
https://docs.metamask.io/embedded-wallets/sdk/react-native#1-create-an-embedded-wallets-instance

some people recommend move to "react-native-keychain", so we should update an option for "react-native-keychain"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions