Skip to content
Browse files

Start the module to authenticate using google oauth2

  • Loading branch information...
1 parent 31578a8 commit 08cfefb6d0c8c195dbded6e28634f31fbd970b88 cronopio committed with Jim Lloyd
Showing with 13 additions and 1 deletion.
  1. +2 −1 index.js
  2. +3 −0 lib/modules/google/index.js
  3. +8 −0 lib/modules/google/schema.js
View
3 index.js
@@ -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.
View
3 lib/modules/google/index.js
@@ -0,0 +1,3 @@
+exports.schema = require('./schema');
+exports.plugin = require('./plugin');
+exports.everyauth = require('./everyauth');
View
8 lib/modules/google/schema.js
@@ -0,0 +1,8 @@
+module.exports = {
+ google:{
+ accessToken: String
+ , expires: Date
+ , refreshToken: String
+ , email: String
+ }
+}

0 comments on commit 08cfefb

Please sign in to comment.
Something went wrong with that request. Please try again.