# Auth0 with angular-oauth2-oidc. Problem with refreshing token

**URL:** <https://community.auth0.com/t/auth0-with-angular-oauth2-oidc-problem-with-refreshing-token/25094>\
**Category:** Get Help\
**Tags:** refresh\_token, refresh-tokens\
**Created:** [May 10, 2019, 7:30am UTC](https://community.auth0.com/t/auth0-with-angular-oauth2-oidc-problem-with-refreshing-token/25094 "2019-05-10T07:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [May 10, 2019, 7:30am UTC](https://community.auth0.com/t/auth0-with-angular-oauth2-oidc-problem-with-refreshing-token/25094/1 "2019-05-10T07:30:53Z")

</div>

Posting it on behalf of @philly.

Hi. I am using Auth0 with angular-oauth2-oidc. Unfortunately I am not able to refresh the token. The app is sending a request like:

[https://philly-vanilly.auth0.com/authorize?response\_type=id\_token%20token&client\_id=XXX&state=YYY&redirect\_uri=https%3A%2F%2Fphilly-vanilly.github.io%2Finit-auth%2Fsilent-refresh.html&scope=openid%20profile%20email&nonce=ZZZ&prompt=none&audience=https%3A%2F%2Fphilly-vanilly.auth0.com%2Fapi%2Fv2%2F](https://philly-vanilly.auth0.com/authorize?response_type=id_token%20token&client_id=XXX&state=YYY&redirect_uri=https%3A%2F%2Fphilly-vanilly.github.io%2Finit-auth%2Fsilent-refresh.html&scope=openid%20profile%20email&nonce=ZZZ&prompt=none&audience=https%3A%2F%2Fphilly-vanilly.auth0.com%2Fapi%2Fv2%2F)

and receiving the following error response:

[https://philly-vanilly.github.io/init-auth/silent-refresh.html#error=login\_required&error\_description=Login%20required&state=YYY](https://philly-vanilly.github.io/init-auth/silent-refresh.html#error=login_required&error_description=Login%20required&state=YYY)

Can you please help me with the configuration? Here is the relevant code:

> <https://github.com/philly-vanilly/init-auth/blob/master/src/app/app.module.ts>

And here is the deplyoed app: [InitAuth](https://philly-vanilly.github.io/init-auth/index.html)

---

<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:** [September 3, 2019, 8:02am UTC](https://community.auth0.com/t/auth0-with-angular-oauth2-oidc-problem-with-refreshing-token/25094/2 "2019-09-03T08:02:45Z")

</div>


