Auth0.Android: An error occurred while trying to use the Refresh Token to renew the Credentials.
When calling SecureCredentialsManager.getCredentials
, when access token has expired, and it is trying to renew access token using the existing refresh token, it will call an onFailure
and return an error cause of AuthenticationException
error.message : An error occurred while trying to use the Refresh Token to renew the Credentials. error.cause.message | Request failed error.cause.code | a0.sdk.internal_error.unknown error.cause.description | Received error with code a0.sdk.internal_error.unknown
Reproduction
It is reproducible if we disable network and call SecureCredentialsManager.getCredentials
when access token has expired. However, It is happening intermittently that some users cannot refresh their token, not sure if it is purely from network issue or not, as the occurrence in production is really high, I doubt that network issue is the only cause of it. Is there any other possible cause other than network issues?
Environment
- Version of this library used:
'com.auth0.android:auth0:1.23.0'
- Version of the platform or framework used, if applicable:
- Other relevant versions (language, server software, OS, browser): It is happening on all type of device and OS level
- Other modules/plugins/libraries that might be involved:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 16 (7 by maintainers)
@lbalmaceda after we do the retry operation, the users who got logged out is decreasing. thanks for the support
@lbalmaceda the issue is very prevalent in our user, so I don’t think it is an issue using proxy or VPN. Weirdly, some user who experience this issue have an internet connection based on our tracking. I have added a manual retry in performing
getCredentials
in case there is aNetworkErrorException
thrown atonFailure
. I’ll keep you updated if there is any new relevant data in the future. Thank you