i storing access_token , refresh_token generated database. when access_token expires need refresh access token using refresh_token. have achieved following method:
oauth2client.refreshaccesstoken(function (err, tokens) { if (err) { console.log("error in refreshing token: " + err); return; } if (tokens) { console.log("tokens:- ", tokens); } });
but issue here using webstorm ide showing method "refreshaccesstoken" deprecated. can me in situation !
i think missing of credentials given. please re-examine code. can go through [link]( how use refreshaccesstoken method generate new accesstoken in google-api-nodejs-client). can check in git
Comments
Post a Comment