From ffbc4f4980d6ebf6a5475b74f9dedff4f8134692 Mon Sep 17 00:00:00 2001 From: febbweiss Date: Fri, 14 Aug 2015 14:33:39 +0000 Subject: [PATCH] Feature: add expiration to JWT --- config/security.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/security.js b/config/security.js index 5a5f2c6..8f1523d 100644 --- a/config/security.js +++ b/config/security.js @@ -1,7 +1,8 @@ module.exports = { jwt : { - secretOrKey : 's3cr3t', - issuer : undefined, // accounts.examplesoft.com - audience : undefined // yoursite.net + secretOrKey : 's3cr3t', + issuer : undefined, // accounts.examplesoft.com + audience : undefined, // yoursite.net + expiresInMinutes : 60*8 // 8 hours } } \ No newline at end of file