diff --git a/internal/client/build_option.go b/internal/client/build_option.go index 1081307..7b0c852 100644 --- a/internal/client/build_option.go +++ b/internal/client/build_option.go @@ -38,7 +38,10 @@ type HTTPTokenOption struct { } func (opt HTTPTokenOption) configureClient(_ context.Context, client *resty.Client) error { - client.SetAuthToken(opt.Token).SetScheme(opt.Scheme) + client.SetAuthToken(opt.Token) + if opt.Scheme != "" { + client.SetAuthScheme(opt.Scheme) + } return nil }