[management] reduce calls to update last usage for users and pats (#8290)

This commit is contained in:
Pascal Fischer
2026-10-22 19:13:11 +02:00
committed by GitHub
parent c476196653
commit 431e201355
8 changed files with 178 additions and 27 deletions
@@ -23,6 +23,8 @@ const (
PATChecksumLength = 6
// PATLength total number of characters used for the token
PATLength = 40
// PATLastUsedUpdateInterval is the minimum age of a token's LastUsed before it is written again
PATLastUsedUpdateInterval = time.Minute
)
// PersonalAccessToken holds all information about a PAT including a hashed version of it for verification