fix: address /home/stevan/go/bin/golangci-lint run ./... issues
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user