fix: address /home/stevan/go/bin/golangci-lint run ./... issues

This commit is contained in:
Stevan Freeborn
2026-08-15 22:09:59 -05:00
parent 9eca3c71e2
commit 19f5aca484
3 changed files with 14 additions and 5 deletions
+3 -1
View File
@@ -96,6 +96,8 @@ func GetAPIKey(headers http.Header) (string, error) {
// token.
func MakeRefreshToken() string {
bytes := make([]byte, 32)
rand.Read(bytes)
if _, err := rand.Read(bytes); err != nil {
panic(err)
}
return hex.EncodeToString(bytes)
}