# Getting the Authorization Code

**URL:** <https://community.auth0.com/t/getting-the-authorization-code/12456>\
**Category:** Get Help\
**Tags:** authorization-code, refresh\_token\
**Created:** [June 20, 2018, 12:17pm UTC](https://community.auth0.com/t/getting-the-authorization-code/12456 "2018-06-20T12:17:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![talzamir92](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@talzamir92](https://community.auth0.com/u/talzamir92)\
**Post date:** [June 20, 2018, 12:17pm UTC](https://community.auth0.com/t/getting-the-authorization-code/12456/1 "2018-06-20T12:17:04Z")

</div>

**Client: Angular 4**  
**Server: Java**

I want to implement a refresh token method, and therefore I’m trying to get an Authorization Code in the client.  
The issue is that I don’t received the code value after using the parseHash method (I do get the other values).

```
  auth0 = new auth0.WebAuth({
    clientID: {{MY CLIENT ID}},
    domain: {{MY DOMAIN}},
    responseType: 'code token id_token',
    redirectUri: {{MY REDIRECT URI}},
    scope: 'profile offline_access',
    autoParseHash: true
  });
  properties = {
    audience: {{audience}},
    connection: {{conection}},
  };

  public handleAuthentication(): void {
    this.auth0.parseHash((err, authResult) => {
.
.
.
}

```

I’ll appreciate some guidance on the subject,  
Thanks.

---

<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:** [December 19, 2018, 11:53am UTC](https://community.auth0.com/t/getting-the-authorization-code/12456/3 "2018-12-19T11:53:03Z")

</div>

Hey @talzamir92!

As it has been more than a few months since this topic was opened and there has been no reply or further information provided from the community as to the existence of the issue we would like to check if you are still facing the described challenge?

We are more than happy to assist in any way! If the issue is still out there please let us know so we can create a new thread for better visibility, otherwise we’ll close this one in week’s time.

Thank you!

---

<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:** [December 24, 2018, 5:00pm UTC](https://community.auth0.com/t/getting-the-authorization-code/12456/4 "2018-12-24T17:00:10Z")

</div>

This topic was automatically closed after 5 days. New replies are no longer allowed.
