Skip to content

Commit

Permalink
Start the module to authenticate using google oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
cronopio committed Sep 6, 2011
1 parent 31578a8 commit 74397aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -11,11 +11,12 @@ var Modules = {
, twitter: require('./lib/modules/twitter')
, github: require('./lib/modules/github')
, instagram: require('./lib/modules/instagram')
, google: require('../lib/modules/google')
};

// Mostly, we need this because password needs to be loaded before everything else
// so that other modules can use everyauth.password.loginKey()
var moduleLoadOrder = ['everymodule', 'password', 'facebook', 'twitter', 'github', 'instagram'];
var moduleLoadOrder = ['everymodule', 'password', 'facebook', 'twitter', 'github', 'instagram', 'google'];

/**
* Decorates the (User) Schema with the proper attributes.
Expand Down
3 changes: 3 additions & 0 deletions lib/modules/google/index.js
@@ -0,0 +1,3 @@
exports.schema = require('./schema');
exports.plugin = require('./plugin');
exports.everyauth = require('./everyauth');
8 changes: 8 additions & 0 deletions lib/modules/google/schema.js
@@ -0,0 +1,8 @@
module.exports = {
google:{
accessToken: String
, expires: Date
, refreshToken: String
, email: String
}
}

0 comments on commit 74397aa

Please sign in to comment.