# Unable to return to my app after e-mail verification

**URL:** <https://community.auth0.com/t/unable-to-return-to-my-app-after-e-mail-verification/58947>\
**Category:** Get Help\
**Tags:** email-verification, redirect, oauth2\
**Created:** [March 5, 2021, 12:04pm UTC](https://community.auth0.com/t/unable-to-return-to-my-app-after-e-mail-verification/58947 "2021-03-05T12:04:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![damian.d940](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/damian.d940/32/12778_2.png) [@damian.d940](https://community.auth0.com/u/damian.d940)\
**Post date:** [March 5, 2021, 12:04pm UTC](https://community.auth0.com/t/unable-to-return-to-my-app-after-e-mail-verification/58947/1 "2021-03-05T12:04:16Z")

</div>

Hi. I’ve setup a very simple single page app (actually an index.html file with the contents of the javascript Login demo), served by nginx and hosted in a docker container on my Linux desktop. The app listens to a name linked to a (private) address in the form of:

> [https://mormotclient.ddev.site](https://mormotclient.ddev.site)

In my auth0 app configuration page, I’ve entered in the Application Login URI field the following url:

> [https://mormotclient.ddev.site/login](https://mormotclient.ddev.site/login)

I’ve also configured the nginx, so to redirect the above url to (mytenant corresponds to my tenant id):

> [https://mytenant.eu.auth0.com/authorize](https://mytenant.eu.auth0.com/authorize)

Login and logout works as expected, using so far database user accounts. The problem is that whenever I confirm an user’s e-mail and press the “Back to my app” button, I get the following error:

> **server\_error** : Unable to issue redirect for OAuth 2.0 transaction

The corresponding error log contains (personal info has been replaced by …):

> {  
> “date”: “2021-03-05T11:07:39.665Z”,  
> “type”: “f”,  
> “description”: “Unable to issue redirect for OAuth 2.0 transaction”,  
> “connection\_id”: “”,  
> “client\_id”: “…”,  
> “client\_name”: “My single page app”,  
> “ip”: “…”,  
> “user\_agent”: “Chrome 89.0.4389 / Linux 0.0.0”,  
> “details”: {  
> “body”: {},  
> “qs”: {  
> “client\_id”: “…”,  
> “response\_type”: “token”,  
> “iss”: “[https://mytenant.eu.auth0.com/](https://mytenant.eu.auth0.com/)”  
> },  
> “error”: {  
> “message”: “Unable to issue redirect for OAuth 2.0 transaction”,  
> “oauthError”: “server\_error”,  
> “type”: “oauth-authorization”  
> },  
> “session\_id”: “RiwmwJV6UQEPdmUlBqhYEeNUmp22oiew”  
> },  
> “hostname”: “[mytenant.eu.auth0.com](http://mytenant.eu.auth0.com)”,  
> “user\_id”: “auth0|…”,  
> “user\_name”: “…”,  
> “audience”: “[https://mytenant.eu.auth0.com/userinfo](https://mytenant.eu.auth0.com/userinfo)”,  
> “scope”: ,  
> “log\_id”: “90020210305110743351000681376438783193575614740051263522”,  
> “\_id”: “90020210305110743351000681376438783193575614740051263522”,  
> “isMobile”: false  
> }

I appreciate very much any help… 🙂

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 8, 2021, 9:36am UTC](https://community.auth0.com/t/unable-to-return-to-my-app-after-e-mail-verification/58947/2 "2021-03-08T09:36:29Z")

</div>

Hi @damian.d940

This error occurs when after the authentication there is no defined URL to return to. Can you check that you have set a redirect\_uri in your authentication request? It should be visible in the /authorize request as something like:

`https://mytenant.eu.auth0.com/authorize?response_type=XXXX&client_id=XXXXXXXXX&scope=XXXX&state=XXXX&redirect_uri= https%3A%2F%2Fyourapp.com%2Fcallback`

Regarding the email verification, you can always specify a result\_url if you’re using a verification ticket, as shown here:

> **[Customize Email Handling](https://auth0.com/docs/customize/email/manage-email-flow)**
>
> Learn how to customize email flow and control when and how emails are sent.

---

<div class="post-metadata">

**Author:** ![damian.d940](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/damian.d940/32/12778_2.png) [@damian.d940](https://community.auth0.com/u/damian.d940)\
**Post date:** [March 8, 2021, 2:28pm UTC](https://community.auth0.com/t/unable-to-return-to-my-app-after-e-mail-verification/58947/3 "2021-03-08T14:28:16Z")

</div>

Hello @ricardo.batista

Thank you very much. When I added redirect\_uri to the query parameters of the redirect rule to /authorize endpoint the problem solved.

---

<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:** [March 23, 2021, 2:28pm UTC](https://community.auth0.com/t/unable-to-return-to-my-app-after-e-mail-verification/58947/4 "2021-03-23T14:28:53Z")

</div>

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