extend the token lifetime

This commit is contained in:
Chris Cromer 2023-01-28 20:59:53 -03:00 committed by Martin Araneda
parent 4d2e91e48c
commit 7c3e6e5809

View File

@ -15,7 +15,7 @@ type JWTClaim struct {
}
func GenerateJWT(email string, username string) (tokenString string, err error) {
expirationTime := time.Now().Add(1 * time.Hour)
expirationTime := time.Now().Add(24 * time.Hour)
claims := &JWTClaim{
Email: email,
Username: username,