Skip to content

Commit

Permalink
Delete set exp to 72 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Sep 18, 2024
1 parent a015fd1 commit 348f0bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fileserver/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func (*MyClaims) Valid() error {

func GenNotifJWTToken(repoID, user string, exp int64) (string, error) {
claims := new(MyClaims)
claims.Exp = time.Now().Add(time.Hour * 72).Unix()
claims.Exp = exp
claims.RepoID = repoID
claims.UserName = user
Expand Down

0 comments on commit 348f0bc

Please sign in to comment.