Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

offline access

  • Loading branch information...
commit 718f0aef32a3d8a942144b0c6f0237420972747a 1 parent ea0f84d
@jozzhart authored
View
6 lib/passport-youtube/index.js
@@ -3,12 +3,6 @@
*/
var Strategy = require('./strategy');
-
-/**
- * Framework version.
- */
-require('pkginfo')(module, 'version');
-
/**
* Expose constructors.
*/
View
9 lib/passport-youtube/strategy.js
@@ -99,6 +99,15 @@ Strategy.prototype._convertProfileFields = function(profileFields) {
return fields.join(',');
}
+
+Strategy.prototype.authorizationParams = function(options) {
+ // test, should be passed through options
+ return {
+ access_type : 'offline'
+ }
+}
+
+
/**
* Expose `Strategy`.
*/
View
11 package.json
@@ -29,17 +29,14 @@
],
"main": "./lib/passport-youtube",
"dependencies": {
- "pkginfo": "0.2.x",
- "passport": "~0.1.1",
- "oauth": "0.9.x",
- "passport-oauth": ""
+ "passport-oauth": "0.1.14"
},
"devDependencies": {},
"scripts": {},
"engines": {
- "node": ">= 0.8.0"
+ "node": ">= 0.8.5"
},
"readme": "passport-youtube\n================\n\nYoutube strategy for passport",
- "_id": "passport-youtube@0.0.4",
- "_from": "passport-youtube@0.0.4"
+ "_id": "passport-youtube@0.0.5",
+ "_from": "passport-youtube@0.0.5"
}
Please sign in to comment.
Something went wrong with that request. Please try again.