oauth tokens are now explicitly defined in the model schema

This commit is contained in:
Sahat Yalkabov
2013-11-30 00:52:53 -05:00
parent 39be015061
commit d642e8d332

View File

@ -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