From 1fc43bfa508b3579ca5a8944f8fc3e84cacee500 Mon Sep 17 00:00:00 2001 From: jloup Date: Mon, 16 Apr 2018 09:56:19 +0200 Subject: Set session expire to 7 days. --- api/auth_jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/auth_jwt.go') diff --git a/api/auth_jwt.go b/api/auth_jwt.go index f713f4e..5ce1593 100644 --- a/api/auth_jwt.go +++ b/api/auth_jwt.go @@ -61,7 +61,7 @@ func CreateJwtToken(userId int64) (string, error) { false, userId, jwt.StandardClaims{ - ExpiresAt: time.Now().Add(time.Hour * 24).Unix(), + ExpiresAt: time.Now().Add(time.Hour * 24 * 7).Unix(), }, } -- cgit v1.2.3