There seems to be some bug in the code

SDK Version: 6.0.1
Platform: iPadOS 18.2
Device type: iPad Air (5th generation)

I get this feedback from testers (for some reason I cant reproduce) when they try to create an account

" There seems to be some bug in the code.
Please contact support to fix this.
Login identifier missing."

Initialization code:

let web3Auth = await Web3Auth(
            W3AInitParams(
                clientId: "BEhM***75qQ",
                network: .testnet
            )
        )

Hey Matthew!

Thanks for reaching out and providing detailed information. We appreciate it! It seems like there’s an issue where the “Login identifier” is missing during account creation, and it’s happening specifically on your testers’ iPad Air 5th Gen with iPadOS 18.2. Sometimes, such issues can be a bit tricky to reproduce consistently, but let’s see what we can do.

Here’s a recap of what you’ve shared so far:

  • SDK: PnP iOS SDK
  • Version: 6.0.1
  • Platform: iPadOS 18.2
  • Device: iPad Air (5th generation)

From the screenshot and your initialization code, everything seems to look correct. However, the error suggests that there might be an issue with how or when the login identifier is being set.

Could you check the following:

  1. Ensure that the login information (like email or phone number) is appropriately being passed into the Web3Auth flow.
  2. It might be worth logging any user identifiers before initializing Web3Auth to ensure they are not null or empty.
  3. There might be additional steps or settings required for iPadOS that need to be configured correctly.

If the problem persists, could you provide:

  • Any additional code snippets related to the login flow?
  • Details on the method of login being used, if applicable?

These additional details will help us in diagnosing the problem further. Let us know if there’s anything else we can do to help!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

This does not address my complaint

Find the full code snippet bellow

func web3Login() async throws -> (secretKey: Data, user: User) {
        let web3Auth = await Web3Auth(
            W3AInitParams(
                clientId: "BEhM****75qQ",
                network: .testnet
            )
        )

        let result = try await web3Auth.login(W3ALoginParams(loginProvider: .APPLE, curve: .ED25519))
        guard let userInfo = result.userInfo else {
            throw APIError.noUserCredential
        }
        return (Data(hexString: web3Auth.getEd25519PrivKey()), User(user: userInfo))
    }