1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

increase token expiration time

This commit is contained in:
2019-07-22 20:02:26 -05:00
parent 6ed712c23d
commit d29c23d9e4

View File

@@ -38,7 +38,7 @@ func GetJWT(user model.User) (string, error) {
user.Email, user.Email,
*user.Permissions, *user.Permissions,
jwt.StandardClaims{ jwt.StandardClaims{
ExpiresAt: time.Now().AddDate(0, 1, 0).Unix(), // one month ExpiresAt: time.Now().AddDate(0, 12, 0).Unix(), // twelve months
Issuer: "Go Discord Bot", Issuer: "Go Discord Bot",
}, },
} }