Skip to content

Commit da1e8cd

Browse files
authored
Merge pull request #28 from bweston92/patch-1
Trim whitespace from auth token when read from file
2 parents 7aa1ad4 + 962e12b commit da1e8cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func getAuth(token string, tokenFile string) (string, error) {
109109
if err != nil {
110110
return "", err
111111
}
112-
return string(b), err
112+
return strings.TrimSpace(string(b)), err
113113

114114
}
115115

0 commit comments

Comments
 (0)