For the iOS native app, Web3Auth is used with a custom auth, and we send the JWT from Firebase after a successful user sign-up. In the Web3Auth dashboard, I’ve set up the project and verifiers accordingly. The iOS app uses the Web3Auth Swift SDK, version 5.0.0. I’ve done a standard integration as described in their documentation.
The errors we get occasionally are the following:
During our tests the other day, we tried simultaneously to log in on Web3Auth. It failed for you but was successful for me!
My system time is correct (I’m in the CEST timezone, but it also occurred to you in the US), and my Internet connection is fast. I also don’t use any VPN on my iPhone. Tests were done on an iPhone 12 Pro running iOS 16.4 and the simulator (during development) also running iOS 16.4.
To be exhaustive, let me show you the code of the integration itself:
let clientID = "BJsLRKiQL-3nvCy9gGMe8X3M_5I89xBxod-isKVoC_is4GXDqkX9_Wn6NaFr3ZxLyOVwGOa_oxWB2k6b2osmlHE"
let web3Auth = await Web3Auth(
W3AInitParams(
clientId: clientID,
network: .cyan,
loginConfig: [
Web3AuthProvider.JWT.rawValue: W3ALoginConfig(
verifier: "cached-firebase-verifier",
typeOfLogin: TypeOfLogin.jwt,
name: "Web3Auth Firebase Verifier",
clientId: clientID
)
]
)
)
let jwt = try await getJwt()
let result = try await web3Auth.login(
W3ALoginParams(
loginProvider: .JWT,
extraLoginOptions: ExtraLoginOptions(display: nil, prompt: nil, max_age: nil, ui_locales: nil, id_token_hint: nil, id_token: jwt, login_hint: nil, acr_values: nil, scope: nil, audience: nil, connection: nil, domain: "xyz.cached.bridge", client_id: clientID, redirect_uri: "xyz.cached.bridge://auth", leeway: 10, verifierIdField: "sub", isVerifierIdCaseSensitive: nil)
)
)
Please let me know if they find an issue with the integration. I tried to correctly set all parameters to the best of my knowledge, but I might be wrong.