React-native-auth0: How do I get a refresh token using this library?

Created on 27 Mar 2017  路  1Comment  路  Source: auth0/react-native-auth0

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?

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Abdisalan picture Abdisalan  路  5Comments

lukewlms picture lukewlms  路  3Comments

ravi-poonia picture ravi-poonia  路  5Comments

ElangoPrince picture ElangoPrince  路  7Comments

anderslemke picture anderslemke  路  9Comments