# Cannot refresh token, getting Login Error message

**URL:** <https://community.auth0.com/t/cannot-refresh-token-getting-login-error-message/76915>\
**Category:** Get Help\
**Tags:** refresh, angular, auth0\
**Created:** [January 24, 2022, 4:32pm UTC](https://community.auth0.com/t/cannot-refresh-token-getting-login-error-message/76915 "2022-01-24T16:32:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihar.charnetski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ihar.charnetski/32/34620_2.png) [@ihar.charnetski](https://community.auth0.com/u/ihar.charnetski)\
**Post date:** [January 24, 2022, 4:32pm UTC](https://community.auth0.com/t/cannot-refresh-token-getting-login-error-message/76915/1 "2022-01-24T16:32:34Z")

</div>

In an Angular app I’m trying to refresh token (when user activation state is updated) via the following code

auth0Service.getAccessTokenSilently({ignoreCache: true})

And getting the following error  
Error: Login required  
Here is how the auth0 module is set up

AuthModule.forRoot({  
domain: ‘my\_domain’,  
clientId: ‘my\_id’,  
audience: ‘my\_audience’,  
useRefreshTokens: true  
})

basically I can update token only via popup, but not automatically.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 25, 2022, 4:55pm UTC](https://community.auth0.com/t/cannot-refresh-token-getting-login-error-message/76915/3 "2022-01-25T16:55:20Z")

</div>

Hi @ihar.charnetski,

Welcome to the Auth0 Community!

Can you see if you are successfully returned a refresh token? You should be able to inspect the request/response and see if it is returned after a successful login.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 14, 2022, 6:19pm UTC](https://community.auth0.com/t/cannot-refresh-token-getting-login-error-message/76915/4 "2022-03-14T18:19:51Z")

</div>


