expires fix

parent f4f814d6
......@@ -28,6 +28,7 @@ var AccessTokenSchema = new mongoose.Schema({
created: {
type: Date,
default: Date.now,
required: true,
expires: config.get('security:tokenLife')
}
});
......
......@@ -32,7 +32,8 @@ var CodeSchema = new mongoose.Schema({
created: {
type: Date,
default: Date.now,
required: true
required: true,
expires: config.get('security:tokenLife')
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment