Skip to content

Commit fc20cd7

Browse files
address comment
1 parent c488833 commit fc20cd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/auth/file_token_storage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"errors"
55
"os"
66
"path/filepath"
7+
"strings"
78
)
89

910
type fileTokenStorage struct {
@@ -46,7 +47,7 @@ func (f *fileTokenStorage) GetAuthToken() (string, error) {
4647
}
4748
return err
4849
}
49-
token = string(data)
50+
token = strings.TrimSpace(string(data))
5051
return nil
5152
})
5253
return token, err

0 commit comments

Comments
 (0)