React Native: Proper / recommended way to refresh access token

In react-native-auth0 I see this:

auth0.auth.refreshToken{{ refreshToken: refreshToken});

However I don’t see any mention of this method in the Auth0 docs in regards to refreshing a token. Rather, I see this which mentions making a direct HTTP request to the below URL.

'https://YOUR_DOMAIN/oauth/token'

The auth0.auth.refreshToken method in the NPM module seems to essentially just make a direct HTTP request to the above URL.

Is the auth0.auth.refreshToken the proper / recommended / current way of refreshing a token (for React Native)? Or should we just make a direct HTTP request to /oauth/token?

Thanks

Hey there!

It seems like the refreshToken method you referenced is the right way, however let me research that to make sure that it’s correct!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.