From 8e9d6380e7ecb33cfc2b57281116f330369448cc Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 17 Nov 2015 06:31:43 -0700 Subject: [PATCH] 24 hr token --- auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/auth.go b/auth/auth.go index 875d194..1f907b7 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -34,7 +34,7 @@ func claimsFunc(email string) (map[string]interface{}, error) { "sub": user.ID, "role": user.Role, "iat": currentTime.Unix(), - "exp": currentTime.Add(time.Minute * 60).Unix(), + "exp": currentTime.Add(time.Minute * 60 * 24).Unix(), "ref": "", }, nil }