Something went Wrong Error occured when I tried to log in with email passwordless loginprovider


I’m trying to log in with email passwordless login provider, but as you can see from the image, that error occured.

adapterSettings: {
uxMode: “popup”,
network: NETWORK,
whiteLabel: {
appName: “TestProject”,
defaultLanguage: “en”,
mode: “dark”
},
loginConfig: {
email_passwordless: {
name: “Email Passwordless Login”,
verifier: “kostychev-passwordless”,
typeOfLogin: “passwordless”,
clientId: CLIENT_ID
}
}
},

This is the loginConfig part in my code.
Could you kindly help to solve this problem?

Hi Kostychev Konstantin!

Thanks for reaching out; I can help you with the “Something went Wrong” error during the email passwordless login process. I see you’ve shared the login configuration part of your code, which is very helpful.

Here’s what you can check to troubleshoot this issue:

  1. Verifier Configuration: Make sure that the verifier name (kostychev-passwordless) is correctly configured in your Web3Auth dashboard. Ensure it matches exactly with the one used in your login config.

  2. Client ID: Confirm that the CLIENT_ID is correct and associated with the same project on Web3Auth.

  3. Network Settings: Double-check that the NETWORK variable correctly corresponds to the environment you’re targeting (e.g., ‘mainnet’, ‘testnet’).

  4. Console Logs: Review your browser console for any specific error messages that might provide further insight into what’s going wrong. If there are any error logs or network issues, those details could be beneficial.

  5. Documentation Reference: You can refer to the official Web3Auth Plug and Play Documentation for detailed guidance on setting up email passwordless login, in case any steps might have been overlooked.

If possible, please share any specific error details shown in the browser console, as it might have additional clues for us to solve the problem. Feel free to ask if you need more 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.

Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours

start#b64Params=eyJsb2dpbklkIjoiY2QwNjRjZGI3NTQwZDQ2MzYyZjJjNjcwNzYyNGQ5MzQzZjQ2ZjJmMjA5YTA3MjU2YTM4ZWZkZDhjMDdiMTI5NyIsInN0b3JhZ2VTZXJ2ZXJVcmwiOiJodHRwczovL2Jyb2FkY2FzdC1zZXJ2ZXIudG9yLnVzIn0:1 [Intervention] Slow network is detected. See Chrome Platform Status for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2
start#b64Params=eyJsb2dpbklkIjoiY2QwNjRjZGI3NTQwZDQ2MzYyZjJjNjcwNzYyNGQ5MzQzZjQ2ZjJmMjA5YTA3MjU2YTM4ZWZkZDhjMDdiMTI5NyIsInN0b3JhZ2VTZXJ2ZXJVcmwiOiJodHRwczovL2Jyb2FkY2FzdC1zZXJ2ZXIudG9yLnVzIn0:1 Access to fetch at ‘Web3Auth Passwordless Login’ from origin ‘https://auth.web3auth.io’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
Web3Auth Passwordless Login

Failed to load resource: net::ERR_FAILED
index-bZz_yKKP.js:2 TypeError: Failed to fetch
at index-bZz_yKKP.js:2:5026
at Lx (index-t_v9i5iq.js:428:21387)
at $x (index-t_v9i5iq.js:428:22724)
at index-t_v9i5iq.js:428:46377
at new Promise ()
at GV.handleLoginWindow (index-t_v9i5iq.js:428:45494)
at async iq.triggerLogin (index-t_v9i5iq.js:429:5109)
at async HK (index-t_v9i5iq.js:431:1655)
at async index-EWmQQFyS.js:1:2241
overrideMethod @ hook.js:608
(anonymous) @ index-bZz_yKKP.js:2
c @ loglevelSentry.esm-2YCza2ba.js:1
(anonymous) @ index-EWmQQFyS.js:1
index-bZz_yKKP.js:2 Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm

Hey @kostychev0902
Can you please refer this example and change the loginConfig part of things?