This commit is contained in:
@@ -23,7 +23,7 @@ func GenerateAccessToken(userID int, secret string) (string, error) {
|
||||
Subject: strconv.Itoa(userID),
|
||||
ID: uuid.New().String(),
|
||||
IssuedAt: jwt.NewNumericDate(now),
|
||||
ExpiresAt: jwt.NewNumericDate(now.Add(2 * time.Minute)),
|
||||
ExpiresAt: jwt.NewNumericDate(now.Add(15 * time.Minute)),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user