Changed tokens type from Array to Mixed to allow overriding existing tokens instead of pushing duplicates
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user