# Auth0 Actions: "error\_description" is no longer included in callback URL when denying a user access post-login

**URL:** <https://community.auth0.com/t/auth0-actions-error-description-is-no-longer-included-in-callback-url-when-denying-a-user-access-post-login/122144>\
**Category:** Get Help\
**Tags:** extensibility, actions-extensibility\
**Created:** [December 1, 2023, 2:27pm UTC](https://community.auth0.com/t/auth0-actions-error-description-is-no-longer-included-in-callback-url-when-denying-a-user-access-post-login/122144 "2023-12-01T14:27:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh.cole](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/josh.cole/32/52900_2.png) [@josh.cole](https://community.auth0.com/u/josh.cole)\
**Post date:** [December 1, 2023, 2:27pm UTC](https://community.auth0.com/t/auth0-actions-error-description-is-no-longer-included-in-callback-url-when-denying-a-user-access-post-login/122144/1 "2023-12-01T14:27:12Z")

</div>

Hello,

We have encountered an issue where the `error_description` query string parameter is no longer being included in the callback URL for our application when we deny a user login inside a Post Login Action. This previously worked fine for several months now, but in the last few days, we have realised we are no longer receiving the `error_description` from Auth0.

### What is happening?

1. User registers an account.
2. Auth0 sends a verification email to the user.
3. User does NOT click the verification link, and instead logs in without verifying their email.
4. Our Post Login Action denies the login e.g. `api.access.deny(reason)` where the `reason` is formatted like: `UNVERIFIED_EMAIL:josh.cole%2Bdec23j%40example.com`.
5. Auth0 sends the user to our callback URL: `https://example.com/auth-error?error=access_denied&state=eyJyZXR1cm5UbyI6Imh0dHBzOi8vbmV0d29yay1zdGFnaW5nLmVsbGVubWFjYXJ0aHVyZm91bmRhdGlvbi5vcmcvIn0`
6. The `error` parameter is correctly set to “access\_denied” in the callback URL, but the `error_description` parameter is missing.
7. Our app shows the user a generic error message instead of “please verify your email address”, because the `error_description` is missing.

### What did we expect to happen?

1. Both the `error` and `error_description` parameters are included in the callback URL.
2. Our app is able to determine the correct error message to show the user, e.g. “please verify your email address”.

Are we doing something wrong here, or has the behaviour of Auth0 Actions changed?

---

<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:** [December 6, 2023, 7:24pm UTC](https://community.auth0.com/t/auth0-actions-error-description-is-no-longer-included-in-callback-url-when-denying-a-user-access-post-login/122144/3 "2023-12-06T19:24:01Z")

</div>

Hi @josh.cole,

I just tested the following Post Login Action and successfully returned the error description:

```auto
exports.onExecutePostLogin = async (event, api) => {
  api.access.deny('Post Login Action Error Message')
};

```

Can you please try creating a new action and test this code to confirm there isn’t something else causing the issue?

---

<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:** [December 22, 2023, 5:58pm UTC](https://community.auth0.com/t/auth0-actions-error-description-is-no-longer-included-in-callback-url-when-denying-a-user-access-post-login/122144/4 "2023-12-22T17:58:17Z")

</div>

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