Skip to content

Commit

Permalink
Use Bearer authorization scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Apr 25, 2024
1 parent 98abbcd commit 7f63652
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 @@ -157,7 +157,7 @@ func (r *Client) newRequest(ctx context.Context, method, path string, body io.Re
}

request.Header.Set("Content-Type", "application/json")
request.Header.Set("Authorization", fmt.Sprintf("Token %s", r.options.auth))
request.Header.Set("Authorization", fmt.Sprintf("Bearer %s", r.options.auth))
if r.options.userAgent != nil {
request.Header.Set("User-Agent", *r.options.userAgent)
}
Expand Down

0 comments on commit 7f63652

Please sign in to comment.