# Get a new token issue

**URL:** <https://community.auth0.com/t/get-a-new-token-issue/111690>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [July 20, 2023, 2:18pm UTC](https://community.auth0.com/t/get-a-new-token-issue/111690 "2023-07-20T14:18:39Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![luis.ponce1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luis.ponce1/32/49082_2.png) [@luis.ponce1](https://community.auth0.com/u/luis.ponce1)\
**Post date:** [August 1, 2023, 3:14pm UTC](https://community.auth0.com/t/get-a-new-token-issue/111690/8 "2023-08-01T15:14:07Z")

</div>

Hi @ty.frith , apologies for the absence. These last few days I had little time to follow up on this bug and focused on other features. I want to tell you that yesterday I found the solution. It turns out that the problem was in the bad configuration of some custom rules, as I read in the solution of this other post:

> [@React Native - Refresh token not working](https://community.auth0.com/t/react-native-refresh-token-not-working/7999):
>
> import Auth0 from 'react-native-auth0'; const auth0 = new Auth0(credentials); getToken = (authData) =\> { auth0 .auth .refreshToken({refreshToken: authData.refreshToken}) .then(credentials =\> {console.log(credentials); return credentials.idToken}) .catch(err =\> {console.log(err)}); } This gives error: { "error": "access\_denied", "error\_description": "Cannot read property 'audience' of undefined" }

Thank you very much for your help.

---

_[View the full topic](https://community.auth0.com/t/get-a-new-token-issue/111690)._
