I found the method to use refresh tokens https://github.com/auth0/react-native-auth0/blob/master/authentication/api.js#L135-L140 but haven't found a way to generate them.
Is it covered by this library at all?
I managed to get a refresh_token by defining the parameters when logging in https://github.com/auth0/react-native-auth0/blob/master/authentication/api.js#L31:
{
scope: 'openid offline_access',
device: 'DEVICE UNIQUE ID',
}
And I got the Device Unique ID using this lib https://github.com/rebeccahughes/react-native-device-info
Most helpful comment
I managed to get a
refresh_tokenby defining theparameterswhen logging in https://github.com/auth0/react-native-auth0/blob/master/authentication/api.js#L31:And I got the Device Unique ID using this lib https://github.com/rebeccahughes/react-native-device-info