# Unable to use undefined as allowed callback url

**URL:** <https://community.auth0.com/t/unable-to-use-undefined-as-allowed-callback-url/185226>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [April 9, 2025, 3:37pm UTC](https://community.auth0.com/t/unable-to-use-undefined-as-allowed-callback-url/185226 "2025-04-09T15:37:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucask](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lucask/32/66248_2.png) [@lucask](https://community.auth0.com/u/lucask)\
**Post date:** [April 9, 2025, 3:37pm UTC](https://community.auth0.com/t/unable-to-use-undefined-as-allowed-callback-url/185226/1 "2025-04-09T15:37:53Z")

</div>

Hi, I tried to follow this tutorial [https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow)

There is step:  
Add an **Allowed Callback URL** of `undefined`

And I cannot do this because validation on Auth0 dashboard is not allowing me:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/8/f83cf8a5ba91e0deb897552265875d0b9520b8dc.png)

How to achieve it? I wanted to get to know how Authorization Code Flow looks like programmatically. I have used it through UI and I think it is a little different than this tutorial. For example in UI I saw /login endpoint was called and also some authorize/resume endpoint was called and there is no any information about those endpoints in this tutorial, so what is the real flow for Authorization Code Flow? I also tried to use /authorize endpoint with real callback url and not undefined and endpoint worked but I cannot see authorization code in the response, why? According to docs I should see:

```auto
HTTP/1.1 302 Found
Location: undefined?code={authorizationCode}&state=xyzABC123

```

But in my response there is no ‘code’, there is only ‘state’.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [April 9, 2025, 3:52pm UTC](https://community.auth0.com/t/unable-to-use-undefined-as-allowed-callback-url/185226/3 "2025-04-09T15:52:11Z")

</div>

Hi @lucask

That appears to be a display bug on the documentation. I would advise to log out and log back in if you are already authenticated on the page or log in if you are not.

Otherwise, the step actually states:

- Add an **Allowed Callback URL** of `{https://yourApp/callback}`.

That should do the trick.

Let me know if you have any other questions.

Kind Regards,  
Nik

---

<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:** [April 23, 2025, 3:52pm UTC](https://community.auth0.com/t/unable-to-use-undefined-as-allowed-callback-url/185226/4 "2025-04-23T15:52:29Z")

</div>

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