# Unregistered\_redirect\_uri when i use eth(siwe) to login in

**URL:** <https://community.auth0.com/t/unregistered-redirect-uri-when-i-use-eth-siwe-to-login-in/117124>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [September 26, 2023, 2:59am UTC](https://community.auth0.com/t/unregistered-redirect-uri-when-i-use-eth-siwe-to-login-in/117124 "2023-09-26T02:59:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xinyu.hou](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/xinyu.hou/32/50656_2.png) [@xinyu.hou](https://community.auth0.com/u/xinyu.hou)\
**Post date:** [September 26, 2023, 2:59am UTC](https://community.auth0.com/t/unregistered-redirect-uri-when-i-use-eth-siwe-to-login-in/117124/1 "2023-09-26T02:59:22Z")

</div>

I refer to this article [Sign In With Ethereum (SIWE), Now Available on Auth0](https://auth0.com/blog/sign-in-with-ethereum-siwe-now-available-on-auth0/#Adding-Sign-in-With-Ethereum-to-Your-Tenant)

but i still got a error like this

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/c/4c1adf80b9a0984681023abde9fa5e70adde32b4.png)

this is my code:

```auto
ReactDOM.render(
  <React.StrictMode>
    <Auth0Provider
      domain={domain}
      clientId={clientId}
      redirectUri={window.location.origin}
    >
      <App /> // login 
    </Auth0Provider>
  </React.StrictMode>,
  document.getElementById('root')
);

```

this is my shell  
`curl -X POST https://oidc.login.xyz/register -d '{"redirect_uris":["http://localhost:3000"]}'`

The client\_id and client\_secret I got from the shell were configured in siwe’s settings.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 27, 2023, 2:10pm UTC](https://community.auth0.com/t/unregistered-redirect-uri-when-i-use-eth-siwe-to-login-in/117124/3 "2023-09-27T14:10:23Z")

</div>

Hi @xinyu.hou,

Take a look at this thread and see if it solves it:

> [@Cant sign in with ethereum with my custom domain](https://community.auth0.com/t/cant-sign-in-with-ethereum-with-my-custom-domain/86090/4):
>
> Hey thanks. Yes it was working before the custom domain. I think I realized I have to delete the current siwe social connection and create a new one registered with the new redirect\_url. This allowed me to not recieve the above error. However now when logging, im getting an internal error according to the auth0 logs. Logs say ‘Login Failed’

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 26, 2023, 2:24pm UTC](https://community.auth0.com/t/unregistered-redirect-uri-when-i-use-eth-siwe-to-login-in/117124/4 "2023-10-26T14:24:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
