Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gdata-js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdata-js - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

gdata.js

@@ -76,3 +76,3 @@ var querystring = require('querystring');

token.access_token = result.access_token;
token.refresh_token = result.refresh_token;
token.refresh_token = result.refresh_token || token.refresh_token;
client.emit('tokenRefresh');

@@ -79,0 +79,0 @@ client.getFeed(url, params, callback);

{
"name": "gdata-js",
"description": "Simple OAuth 2.0 GData API client",
"version": "2.0.0",
"version": "2.0.1",
"author": "Simon Murtha-Smith <simon@murtha-smith.com>",

@@ -6,0 +6,0 @@ "keywords": ["google", "gdata"],

@@ -20,2 +20,4 @@ var request = require('request');

var token;
app.get('/', function (req, res) {

@@ -25,3 +27,3 @@ // see https://developers.google.com/accounts/docs/OAuth2WebServer for options

access_type: 'offline',
approval_prompt: 'force'}, req, res, function(err, token) {
approval_prompt: 'force'}, req, res, function(err, _token) {
if(err) {

@@ -32,2 +34,4 @@ console.error('oh noes!', err);

} else {
token = _token;
console.log('got token:', token);
res.redirect('/getStuff');

@@ -49,6 +53,19 @@ }

});
})
});
app.listen(8553);
app.get('/refresh', function(req, res) {
console.log('forcing refresh...');
gdataClient._refreshToken(function(err, result) {
console.log('err,', err);
console.log('result,', result);
console.log('token,', token);
});
});
gdataClient.on('tokenRefresh', function() {
console.log('token refresh!', token);
});
app.listen(process.argv[4] || 8553);
console.log('open http://localhost:8553');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc