# Authorization API endpoint returns URL in an odd format

**URL:** <https://community.auth0.com/t/authorization-api-endpoint-returns-url-in-an-odd-format/57769>\
**Category:** Get Help\
**Tags:** api-authorization, api\
**Created:** [February 12, 2021, 7:04am UTC](https://community.auth0.com/t/authorization-api-endpoint-returns-url-in-an-odd-format/57769 "2021-02-12T07:04:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvxt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mvxt/32/12906_2.png) [@mvxt](https://community.auth0.com/u/mvxt)\
**Post date:** [February 12, 2021, 7:04am UTC](https://community.auth0.com/t/authorization-api-endpoint-returns-url-in-an-odd-format/57769/1 "2021-02-12T07:04:45Z")

</div>

I’m trying to implement a flow to link user accounts, and I’m trying to initiate this on the client side.

When calling the Authorization endpoint `/authorize`, the user is able to log in, but after the user is redirected, the parameters are inserted into the URL in a weird format.

Rather than using a ‘?’ like you’d expect, the parameters are put after a ‘#’. This is subsequently making it difficult to parse the returned access\_token and other parameters because none of the standard tools and libraries recognize all of the content after the ‘#’ as being query parameters.

This is the format that I’m seeing in the address bar:  
`http://localhost:3000/settings#access_token=REDACTED&expires_in=7200&token_type=Bearer&state=REDACTED`.

I don’t mind parsing these values myself, but there’s gotta be a cleaner method?

---

<div class="post-metadata">

**Author:** ![mvxt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mvxt/32/12906_2.png) [@mvxt](https://community.auth0.com/u/mvxt)\
**Post date:** [February 13, 2021, 4:55am UTC](https://community.auth0.com/t/authorization-api-endpoint-returns-url-in-an-odd-format/57769/2 "2021-02-13T04:55:08Z")

</div>

Ah derp. Everything after the ‘#’ is the `location.hash`. Don’t mind me, I’m a front-end newb. 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 25, 2021, 1:26pm UTC](https://community.auth0.com/t/authorization-api-endpoint-returns-url-in-an-odd-format/57769/3 "2021-02-25T13:26:54Z")

</div>

No worries! We’ve all been there!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 25, 2021, 1:26pm UTC](https://community.auth0.com/t/authorization-api-endpoint-returns-url-in-an-odd-format/57769/4 "2021-02-25T13:26:59Z")

</div>


