After sign in, I got error:
Authentication Error
Error signing into Farcaster
Please fix.
“@web3auth /base”: “^8.0.0”,
“@web3auth /coinbase-adapter”: “^8.0.1”,
“@web3auth /default-evm-adapter”: “^8.0.1”,
“@web3auth /ethereum-provider”: “^8.0.1”,
“@web3auth /metamask-adapter”: “^8.0.1”,
“@web3auth /modal”: “^8.0.1”,
“@web3auth /torus-evm-adapter”: “^8.0.1”,
“@web3auth /wallet-connect-v2-adapter”: “^8.0.1”,
“@web3auth /wallet-services-plugin”: “^8.0.1”,
TomTom
June 11, 2024, 7:55pm
2
hi @zhew1991
I hope you’re doing well. Kindly update all libraries to our latest version v8.6.2. Also, could you please share some code snippets of your configuration so that we can assist you in resolving your issue.
Thanks
After I deleted my old node_module… updated my dependency to:
"@web3auth/base": "^8.6.2",
"@web3auth/default-evm-adapter": "^8.6.2",
"@web3auth/ethereum-provider": "^8.6.2",
"@web3auth/modal": "^8.6.2",
"@web3auth/wallet-connect-v2-adapter": "^8.6.2",
"@web3auth/wallet-services-plugin": "^8.6.2",
and run npm install…
I got this error:
Cannot read properties of undefined (reading ‘type’)
TypeError: Cannot read properties of undefined (reading ‘type’)
at http://localhost:3000/static/js/bundle.js:183276:42
at Array.map ()
at union (http://localhost:3000/static/js/bundle.js:183276:31 )
at ./node_modules/@metamask /abi-utils/dist/parsers/function.js (http://localhost:3000/static/js/bundle.js:10141:29 )
at options.factory (http://localhost:3000/static/js/bundle.js:246745:31 )
at webpack_require (http://localhost:3000/static/js/bundle.js:246174:32 )
at fn (http://localhost:3000/static/js/bundle.js:246403:21 )
at ./node_modules/@metamask /abi-utils/dist/parsers/index.js (http://localhost:3000/static/js/bundle.js:10268:14 )
at options.factory (http://localhost:3000/static/js/bundle.js:246745:31 )
at webpack_require (http://localhost:3000/static/js/bundle.js:246174:32 )
Now I use:
"@web3auth/base": "^8.6.2",
"@web3auth/default-evm-adapter": "^8.6.2",
"@web3auth/ethereum-provider": "^8.6.2",
"@web3auth/modal": "^8.6.2",
"@web3auth/wallet-services-plugin": "^8.6.2",
It still gives me error:
app.2facd118.js:1 unable to connect to farcaster
Response
body: (…)
bodyUsed: false
headers: Headers {}
ok: false
redirected: false
status: 400
statusText: “Bad Request”
type: “cors”
url: “https://authjs.web3auth.io/siwf/verify ”
[[Prototype]]: Response
app.2facd118.js:1 startFarcasterLogin::error::
Response
body: (…)
bodyUsed: false
headers: Headers {}
ok: false
redirected: false
status: 400
statusText: “Bad Request”
type: “cors”
url: “https://authjs.web3auth.io/siwf/verify ”
[[Prototype]]: Response
app.2facd118.js:1
Error: Authentication Error at Proxy. (app.2facd118.js:1:25751) at h (chunk-vendors.7abbfe26.js:65:619) at Generator. (chunk-vendors.7abbfe26.js:65:1971) at Generator.throw (chunk-vendors.7abbfe26.js:65:1048) at n (chunk-vendors.7abbfe26.js:63:83663) at c (chunk-vendors.7abbfe26.js:63:83902)
Object
My code:
await web3auth.initModal({
modalConfig: {
[WALLET_ADAPTERS.OPENLOGIN]: {
label: “openlogin”,
loginMethods: {
twitter: {
name: “twitter”,
showOnModal: true,
mainOption: true
},
farcaster: {
name: “farcaster”,
showOnModal: true,
mainOption: true
},
…
It works for twitter, but doesn’t work for farcaster
Hey @zhew1991
Can you confirm if the Farcaster login works for you on this demo or not?
No.
" Authentication Error
Error signing into Farcaster"
I think it might be a cors issue.
vjgee
June 13, 2024, 3:18am
8
@zhew1991 Can you try using a different browser?
Hey @zhew1991
I am not able to reproduce this on my end. Meanwhile, did you try this?
@zhew1991 Can you try using a different browser?