mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-09 16:42:48 +00:00
increase token expiration time
This commit is contained in:
@@ -38,7 +38,7 @@ func GetJWT(user model.User) (string, error) {
|
||||
user.Email,
|
||||
*user.Permissions,
|
||||
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",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user