chore: rename get basic auth to encode basic auth for clarity

This commit is contained in:
Stavros
2026-05-04 16:14:45 +03:00
parent df56708b9a
commit 004df2f852
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func ParseSecretFile(contents string) string {
return ""
}
func GetBasicAuth(username string, password string) string {
func EncodeBasicAuth(username string, password string) string {
auth := username + ":" + password
return base64.StdEncoding.EncodeToString([]byte(auth))
}