diff --git a/client.go b/client.go index df99b72..d9c12d4 100644 --- a/client.go +++ b/client.go @@ -147,6 +147,9 @@ func (c *Client) request( return nil, err } + if auth := c.getAuth(); auth.token != "" { + opts.HeaderAdd("Authorization", "Bearer "+auth.token) + } c.applyReqHeaders(req, opts.headers) var (