Hey,
I am trying to create a authentication flow in a react-native-app with react-native-auth0. I am unfortunately not receiving any refresh token with my access token.
Things I have done:
- Enabled Refresh Token Rotation on my native application
- Send offline_access as scope:
await authorize(
{
scope: 'openid profile email offline_access',
additionalParameters: {
ui_locales: selectedLocale,
},
},
{ephemeralSession: true},
);
Additionally, I am checking the authentication state of the user through the Auth0 hook’s function hasValidCredentials but after login the value switches to true and flips back to false.
Any help on understanding this better is really really appreciated. Thanks@