Hi team,
I’ve been testing the Web3Auth OTP service and noticed an issue.
When attempting to log in, the Web3Auth popup appears but the flow fails with the error:
Validation failed – “There was an error during your login attempt. Please try logging in again”
This happens randomly and is reproducible multiple times .
Flow:
Trigger login with OTP.
Web3Auth popup opens.
Error message displayed (validation failed).
Impact : Login cannot be completed using OTP.
See Attachment
w3abot
August 26, 2025, 9:13am
2
Thank you for your detailed report, Arun! Here’s a summary of your issue for the support team:
Issue Summary
SDK/Product: Web3Auth Plug n Play (Single Factor Auth JS SDK, OTP Login)
Platform: Not explicitly mentioned (please specify if Web, Mobile, or other)
Issue: OTP login consistently fails. The Web3Auth popup opens, but the flow fails with the error:
Validation failed – “There was an error during your login attempt. Please try logging in again”
Reproducibility: Happens every time, multiple attempts.
Impact: OTP login is completely blocked.
Additional Details Needed
To help the support team investigate further, could you please provide:
SDK Version Number you are using.
Code Snippet of your Web3Auth initialization and the OTP login trigger (if possible).
Verifier Name (as set in your Web3Auth Dashboard).
Method of Login: Are you using a custom backend to generate OTP and JWT, or only Web3Auth’s built-in OTP flow?
Browser Console Screenshot (if you’re using the Web SDK) showing any errors or warnings when the failure occurs.
If you are using your own authentication (custom JWT), please also share:
JWKS Endpoint
Sample idToken (JWT) (with any sensitive info redacted)
Possible Next Steps
Double-check that your verifier is correctly configured in the Web3Auth Dashboard and matches what you’re passing in the code.
Ensure the JWT token used for login is valid, not expired, and hasn’t been reused (Web3Auth requires a fresh token for each login attempt).
Review the OTP Login documentation for any missing configuration steps.
Once you provide the requested details, the support team can assist you more efficiently. Thank you for your patience!
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.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours
Where have you been testing it?
on our demo or an example dapp?
SDK Version Number: “@web3auth /react-native-sdk”: “^8.1.0” Code Snippet:
const web3auth = new Web3Auth(WebBrowser, EncryptedStorage, {
clientId: Config.WEB3AUTH_CLIENT_ID,
redirectUrl: Config.LOGIN_REDIRECT_URL,
network: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
loginConfig: {
google: googleLoginConfig,
discord: discordLoginConfig,
apple: appleLoginConfig
},
privateKeyProvider
})
await web3auth.init()
await web3auth.login({
loginProvider: provider,
redirectUrl: Config.LOGIN_REDIRECT_URL,
mfaLevel: 'none',
curve: 'secp256k1',
extraLoginOptions
})
Method of Login: Web3Auth’s built-in OTP flow
Via our chess app (React Native iOS app)