react-native-google-signin package is not giving refresh token -


i implementing google api in react-native app , using react-native-google-signin package google sign-in/oauth.

while using code

googlesignin.configure({   scopes: ["https://www.googleapis.com/auth/drive.readonly"], // api want access on behalf of user, default email , profile   iosclientid: <from developer console>, // ios   webclientid: <from developer console>, // client id of type web server (needed verify user id , offline access)   offlineaccess: true // if want access google api on behalf of user server   hosteddomain: '' // specifies hosted domain restriction   forceconsentprompt: true // [android] if want show authorization prompt @ each login   accountname: '' // [android] specifies account name on device should used }) .then(() => {   // can call currentuserasync`enter code here`() }); 

although have offlineaccess: true, still, don't refresh token used after original token expires. how refresh token package? or when token expires? service silent background worker , can't ask user credentials giving ui.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -