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:
@@ -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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user