authenticateUser fails on React Native's corekit SDK

Hi, we’re trying to use the React Native’s corekit sdk but the authenticateUser method fails with 500 error from the server.

After some debugging, we found the following response is being returned in https://authjs.web3auth.io/siww/get

{"error":"Cannot read properties of undefined (reading 'length')","success":false}

Here’s the payload we’re sending (this is generated by React Native SDK, we got it from chrome debug)

{"payload":{"address":"0x00ac15fdd2da7f278d94e853e6585f06483d7161","chainId":1,"version":"1","nonce":"7rax35rwrff","issuedAt":"2024-07-05T16:34:49.408Z"},"header":{"t":"eip191"},"network":"ethereum"}

Hey @thalles.passos can you please the the package.json, your initialization code, and your authentication code along? This will help us to understand the flow and help you better.

Hi, forgot to reply here but for some reason the check of typeof window wasnt “undefined” (we probably have some polyfill that we dont know of). I guess i’ll have to do a fork or patch-package directly, thanks!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.