Skip to content

Commit

Permalink
increase jwt timeout to one day
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>
  • Loading branch information
janlauber committed Feb 5, 2022
1 parent b132e00 commit 75cbd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/authController.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 75cbd39

Please sign in to comment.