Skip to content

Commit

Permalink
fix(client/auth): Auth changed to Bearer
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufpapurcu committed Jan 25, 2022
1 parent 54ad27d commit 8440d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Client struct {

// TokenAuth sets authorization headers for subsequent requests.
func (c *Client) TokenAuth(token string) *Client {
c.clientTransport.header.Set("Authorization", "Basic "+token)
c.clientTransport.header.Set("Authorization", "Bearer "+token)
c.clientTransport.header.Set("apikey", token)
return c
}
Expand Down

0 comments on commit 8440d1f

Please sign in to comment.