Changed tokens type from Array to Mixed to allow overriding existing tokens instead of pushing duplicates

This commit is contained in:
Sahat Yalkabov
2013-11-19 17:28:04 -05:00
parent 0747ee7303
commit 13bd8ef9c8
2 changed files with 8 additions and 4 deletions

View File

@ -7,7 +7,7 @@ var userSchema = new mongoose.Schema({
firstName: String,
lastName: String,
password: String,
tokens: Array,
tokens: mongoose.Schema.Types.Mixed,
provider: String,
facebook: String,
google: String