mirror of
https://github.com/hardillb/node-red-alexa-home-skill-web.git
synced 2025-12-11 09:29:44 +01:00
Set oauth timeout to 5 years
OAuth refresh not working so setting token timeout to 5 years
This commit is contained in:
7
index.js
7
index.js
@@ -71,7 +71,12 @@ console.log(mongo_url);
|
||||
var mongoose_options = {
|
||||
server: {
|
||||
auto_reconnect:true,
|
||||
reconnectTries: Number.MAX_VALUE
|
||||
autoReconnect: true,
|
||||
reconnectTries: Number.MAX_VALUE,
|
||||
reconnectInterval: 1000,
|
||||
socketOptions: {
|
||||
autoReconnect: true
|
||||
}
|
||||
}
|
||||
};
|
||||
var mongoose_connection = mongoose.connection;
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
application:
|
||||
- name: alexa-node-red
|
||||
memory: 128M
|
||||
host: alexa-node-red
|
||||
host: alexa-node-red
|
||||
|
||||
@@ -35,7 +35,7 @@ var AccessTokenSchema = new Schema({
|
||||
scope: [ { type: String }],
|
||||
expires: { type: Date, default: function(){
|
||||
var today = new Date();
|
||||
var length = 60 * 24 * 90; // Length (in minutes) of our access token
|
||||
var length = 60 * 24 * 365 * 5; // Length (in minutes) of our access token
|
||||
return new Date(today.getTime() + length*60000);
|
||||
} },
|
||||
active: { type: Boolean, get: function(value) {
|
||||
|
||||
Reference in New Issue
Block a user