# Auth0 email verification redirect issue: Access denied error

**URL:** <https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480>\
**Category:** Ask the community\
**Created:** [October 31, 2024, 9:52am UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480 "2024-10-31T09:52:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elin-ENVE](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Elin-ENVE](https://community.appfarm.io/u/Elin-ENVE)\
**Post date:** [October 31, 2024, 9:52am UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480/1 "2024-10-31T09:52:11Z")

</div>

Hi! I’m setting up Auth0 with 2FA and sending a verification email to confirm the user’s email before they can access the app. However, when the email is sent through Auth0 (and before the user has authenticated), I’m redirected to this URL: “[https://accounts.appfarm.io/v1/callback?error=access\_denied&error\_description=Invalid%20URL&state=cQstCv1vZfoMNvZpnRr9Zrp9apqbePGy3xr1HYFpZKNLHioS](https://accounts.appfarm.io/v1/callback?error=access_denied&error_description=Invalid%20URL&state=cQstCv1vZfoMNvZpnRr9Zrp9apqbePGy3xr1HYFpZKNLHioS)”  
Does anyone know how I can redirect users to a specific landing page instead? Thanks!

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [November 4, 2024, 9:37am UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480/2 "2024-11-04T09:37:32Z")

</div>

Hi @Elin-ENVE ,

To customize where users land post-verification, you can set a specific URL in the “Redirect To” field in Auth0’s Verification Email template settings.

Have you already tried the following steps?

1. Open your Auth0 Dashboard and navigate to Branding \> Email Templates.

2. Select the Verification Email template to edit.

3. In the “Redirect To” field, enter the URL you’d like users to land on after verifying their email. For instance, “{{ application.callback\_domain }}/login” can redirect them to your login page.

4. Add the Redirect URL to Allowed Callback URLs: Make sure “{{ application.callback\_domain }}/login” (or the specific URL you’re using) is included in your app’s Allowed Callback URLs under the Auth0 settings. This step can prevent the access\_denied error that’s currently occurring.

If you’ve already done this and it’s still not working, let me know, and I’d be happy to help troubleshoot further!

---

<div class="post-metadata">

**Author:** ![Elin-ENVE](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Elin-ENVE](https://community.appfarm.io/u/Elin-ENVE)\
**Post date:** [November 4, 2024, 10:40am UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480/3 "2024-11-04T10:40:12Z")

</div>

Thank you for the tips!

I realize I could have explained more clearly. The error occurs before users click the verification link in the email. It happens during registration, right after the verification email is sent. Ideally, users should be redirected to a page instructing them to check their email to verify their account. However, they’re currently being redirected to an error page instead.

---

<div class="post-metadata">

**Author:** ![Elin-ENVE](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Elin-ENVE](https://community.appfarm.io/u/Elin-ENVE)\
**Post date:** [November 7, 2024, 12:36pm UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480/4 "2024-11-07T12:36:30Z")

</div>

@Simona do you have any recommendations on what I could do or look into to solve this?

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [November 7, 2024, 1:23pm UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480/5 "2024-11-07T13:23:20Z")

</div>

Hei @Elin-ENVE,

Could you double-check that [https://accounts.appfarm.io/v1/callback](https://accounts.appfarm.io/v1/callback) is included in your “Allowed Callback URLs” in the Auth0-portal under Applications → Settings?

Also, sometimes custom rules can disrupt the usual flow. Try going to Actions \> Flows \> Login in Auth0 to see if there are any rules that might be triggering a redirect or error at this point.

Auth0’s logs can be very useful for diagnosing issues like this. You’ll find them under Monitoring \> Logs. This might help clarify why the redirect isn’t working.

---

<div class="post-metadata">

**Author:** ![Elin-ENVE](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Elin-ENVE](https://community.appfarm.io/u/Elin-ENVE)\
**Post date:** [November 21, 2024, 9:21am UTC](https://community.appfarm.io/t/auth0-email-verification-redirect-issue-access-denied-error/1480/6 "2024-11-21T09:21:12Z")

</div>

Hi @Simona  
Im adding two images to demonstrate the issue. When entering the email and clicking continue i am directly redirected to the callback, and not the “waiting page” while the email is verified. Hopefully this gives some more detail about what we ca do.

 ![Screenshot 2024-11-21 at 10.19.36](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/f/fbda611edafe7a6da0c64a53715d9258bae72e72.jpeg)  
 ![Screenshot 2024-11-21 at 10.19.44](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/6/6e3ef72086a104d2ca77b52ad4c7f00daaa51686.png)
