Skip to content

Commit

Permalink
feat: add Koios auth
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed May 30, 2024
1 parent 2c99eb3 commit 41e4ed3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 41e4ed3

Please sign in to comment.