From d642e8d332384fcfa0742030a4de0ec5c707c022 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sat, 30 Nov 2013 00:52:53 -0500 Subject: [PATCH] oauth tokens are now explicitly defined in the model schema --- models/User.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/models/User.js b/models/User.js index 78de275917..2c98cce012 100644 --- a/models/User.js +++ b/models/User.js @@ -7,7 +7,12 @@ var userSchema = new mongoose.Schema({ firstName: String, lastName: String, password: String, - tokens: mongoose.Schema.Types.Mixed, + tokens: { + facebook: String, + foursquare: String, + twitter: String, + github: String + }, provider: String, facebook: String, google: String