Content from Web3Auth Community
This topic was originally posted by marx on 8/4/2025.
This content has been migrated from our previous community forum to preserve valuable discussions.
Hey team, I am facing some 2 issues with the PnP @web3auth/react-native-sdk library.
Context - my Setup
// package.json - Relevant libraries“dependencies”: {
“expo”: “^52.0.40”,
“@web3auth/react-native-sdk”: “^8.0.0”,
},
“devDependencies”: {
“buffer”: “^6.0.3”,
“crypto-browserify”: “^3.12.1”,
“empty-module”: “^0.0.2”,
“process”: “^0.11.10”,
“react-native-get-random-values”: “^1.11.0”,
“readable-stream”: “^4.7.0”,
}
Issue #1 - base64FromArrayBuffer is not a function
I have copied the same exact code used in the Expo example’s (App.tsx) over to a Screen in my repo.
The code executed up till the await web3auth.login({ .. }) function where this error was thrown in the Console.
I then ran the example separately and it worked > opened the browser > login > retrieve User Info…etc.
I have set up my project as close as I can to the example as much as I can. Files like these are exactly the same (line by line) in my repo and the example:
globals.jsmetro.config.js
But I still can’t get past this error.
Issue #2 - Custom JWT connection.
We run our own auth backend and have our own custom JWT auth. Users would have already been logged in/authenticated before fetching their Wallets.
We have also followed the Custom Auth guide and created our own Custom Connection in our Web3Auth Dashboard and verified that our token is indeed publicly verifiable using a tool like https://jwt.davetonge.co.uk/.
The problem is that it is not obvious how we can create & retrieve wallet info using the react-native-sdk with a custom connection. Can someone please help point us in the right direction?