# Should user and org id be returned in URL on error?

**URL:** <https://community.auth0.com/t/should-user-and-org-id-be-returned-in-url-on-error/192876>\
**Category:** Get Help\
**Tags:** free-trial, login-experience\
**Created:** [October 7, 2025, 8:15am UTC](https://community.auth0.com/t/should-user-and-org-id-be-returned-in-url-on-error/192876 "2025-10-07T08:15:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anders5](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anders5/32/72177_2.png) [@anders5](https://community.auth0.com/u/anders5)\
**Post date:** [October 7, 2025, 8:15am UTC](https://community.auth0.com/t/should-user-and-org-id-be-returned-in-url-on-error/192876/1 "2025-10-07T08:15:16Z")

</div>

Just dived into Auth0 using the **Username-Password-Authentication** connection. I’m in Vue with the @auth0/auth0-vue package.

I’m just curious if passing this much Personally Identifiable Information like below in the URL parameters is a good practice ?

Maybe I’am missing some config ?

This is how loginWithRedirect() returns when user is not in organization:

localhost:4001/login?error=access\_denied&error\_description=user+auth0|68dec40e…..+is+not+part+of+the+org\_JM7T……..+organization&state=MTVROFNOTH……

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [October 7, 2025, 7:57pm UTC](https://community.auth0.com/t/should-user-and-org-id-be-returned-in-url-on-error/192876/3 "2025-10-07T19:57:51Z")

</div>

Hello @anders5,

Welcome to the Auth0 Community!

This is actually considered expected behavior in this scenario, and while this looks like providing a bit more information in case of a failed attempt to authenticate an user, it follows the standards of the OAuth 2.0, which implies redirecting back to your application with specific `error` and `error_description` query parameters.

However though, in Auth0 you can customize the error description received by your application using a [Post-Login Action](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger). You can modify the `reason` from the `api.access.deny(reason)` object since the [post-login - API Object](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/post-login-api-object) described the `reason` parameter as:

> _String_. A human-readable explanation for rejecting the login. This is sent as `error_description` to the application that initiated the request.

Best regards,

Remus

---

<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 21, 2025, 7:58pm UTC](https://community.auth0.com/t/should-user-and-org-id-be-returned-in-url-on-error/192876/4 "2025-10-21T19:58:18Z")

</div>

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