From 7bbe6cb61086a9d6db5820e7c99ba69726a88e70 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 23 Nov 2016 18:18:44 +0000 Subject: [PATCH] Extend session authentication time for NS/DB users --- web/signin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/signin.go b/web/signin.go index 11f6395a..374ffa0b 100644 --- a/web/signin.go +++ b/web/signin.go @@ -135,7 +135,7 @@ func signin(c *fibre.Context) (err error) { "iss": "Surreal", "iat": time.Now().Unix(), "nbf": time.Now().Unix(), - "exp": time.Now().Add(10 * time.Minute).Unix(), + "exp": time.Now().Add(1 * time.Hour).Unix(), }) // Try to create the final signed token as a string. @@ -189,7 +189,7 @@ func signin(c *fibre.Context) (err error) { "iss": "Surreal", "iat": time.Now().Unix(), "nbf": time.Now().Unix(), - "exp": time.Now().Add(10 * time.Minute).Unix(), + "exp": time.Now().Add(1 * time.Hour).Unix(), }) // Try to create the final signed token as a string.