Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Start the module to authenticate using google oauth2

  • Loading branch information...
commit 74397aa3211e3f15fbe40b915f9cbeb67080d157 1 parent 31578a8
cronopio authored
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
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.