From 75cbd39554e20a43a5bba559bf9ed32fd7553c88 Mon Sep 17 00:00:00 2001 From: Jan Lauber Date: Sat, 5 Feb 2022 23:27:02 +0100 Subject: [PATCH] increase jwt timeout to one day Signed-off-by: Jan Lauber --- controllers/authController.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/authController.go b/controllers/authController.go index 34a5d11..f332704 100644 --- a/controllers/authController.go +++ b/controllers/authController.go @@ -91,8 +91,8 @@ func LoggedIn(c *fiber.Ctx, githubData string) error { }) } - // expire token in 1 hour - exp := time.Now().Add(time.Hour).Unix() + // expire token in 1 day + exp := time.Now().Add(time.Hour * 24).Unix() claims := jwt.MapClaims{ "github_team_slugs": githubTeamSlugs,