From 1ef8807b2de7d3e403a5c9e837c2b1c11e26ce05 Mon Sep 17 00:00:00 2001 From: sauls8t Date: Thu, 8 Feb 2018 11:40:04 +0000 Subject: [PATCH] increase token expiry --- domain/auth/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/auth/jwt.go b/domain/auth/jwt.go index caeae8df..c00e8f49 100644 --- a/domain/auth/jwt.go +++ b/domain/auth/jwt.go @@ -27,7 +27,7 @@ func GenerateJWT(rt *env.Runtime, user, org, domain string) string { token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{ "iss": "Documize", "sub": "webapp", - "exp": time.Now().Add(time.Hour * 168).Unix(), + "exp": time.Now().Add(time.Hour * 8760).Unix(), "user": user, "org": org, "domain": domain,