Skip to content

Commit

Permalink
🐛 fix: person access token expire time error (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwnmengjing authored Oct 16, 2024
1 parent ced2a20 commit 1126499
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/user_auth_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func GenerateUserAuthToken(ctx *gin.Context, verify security.Verifier, validityP
}
auth := *middleware.Auth
auth.Timeout = validityPeriod
auth.TimeoutFunc = func(_ interface{}) time.Duration {
return validityPeriod
}
userAuthToken := &UserAuthToken{
UserID: verify.GetUserID(),
}
Expand Down

0 comments on commit 1126499

Please sign in to comment.