# \[Archive\] Failed to connect with openLogin provider

**URL:** <https://builder.metamask.io/t/archive-failed-to-connect-with-openlogin-provider/2284>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [December 2, 2022, 9:35am UTC](https://builder.metamask.io/t/archive-failed-to-connect-with-openlogin-provider/2284 "2022-12-02T09:35:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [December 2, 2022, 9:35am UTC](https://builder.metamask.io/t/archive-failed-to-connect-with-openlogin-provider/2284/1 "2022-12-02T09:35:43Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **githubdiscussions** on 12/2/2022.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

Hi there!, I am integrating the custom-react-ui demo for our dapp!

I have cloned the custom-react-ui demo from your github and now here I pushed :  
[custom-react-ui-repo](https://github.com/NekfarBaqir/web3AuthEx)  
[and Here I hosted in vercel](https://web3-auth-ex.vercel.app/)

——————————————————————————  
but now when I try to click on login with any socials, the popup is showing and when I choose my account after loading it gives me the bellow error:

`openloginAdapter.ts:133
Failed to connect with openlogin provider Error: Unexpected token ‘u’, “user proje”… is not valid JSON
at o (errors.ts:188:10)
at Object.internal (errors.ts:52:45)
at INetworkController.ts:125:13
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at o (asyncToGenerator.js:25:9)
`

`web3auth.tsx:91
some error or user has cancelled login request Error: Unexpected token ‘u’, “user proje”… is not valid JSON
at o (errors.ts:188:10)
at Object.internal (errors.ts:52:45)
at INetworkController.ts:125:13
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at o (asyncToGenerator.js:25:9)`
`

you guys can check the above live link and github repo, and you yourself can see the error in your own browsers!  
the repository is public , if some code was wrong there, you can push it!

thanks !

  
   
 Originally posted by: [NekfarBaqir](https://github.com/NekfarBaqir)  
   
 Check the discussion at: [https://github.com/orgs/Web3Auth/discussions/981](https://github.com/orgs/Web3Auth/discussions/981)

---

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [December 5, 2022, 3:33am UTC](https://builder.metamask.io/t/archive-failed-to-connect-with-openlogin-provider/2284/2 "2022-12-05T03:33:27Z")

</div>

I checked out that repo, tested in local and got the following error:  
[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/9/97358b3d8b152430e9a5c5a4ed9e32b4f610a239.png)](https://user-images.githubusercontent.com/16631641/205543477-92a801e9-9e52-44f7-ae34-d35b6467e73d.png)  
It seems that the InfuraKey is not valid. After changing it in ChainConfig file, it works now.

  
   
 Originally posted by: [tainguyentt](https://github.com/tainguyentt)
