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 Mar 30, 2024
1 parent e0b1534 commit da1f991
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 != "" {

Check failure on line 150 in client.go

View workflow job for this annotation

GitHub Actions / lint

c.getAuth undefined (type *Client has no field or method getAuth)
opts.HeaderAdd("Authorization", "Bearer "+auth.token)
}
c.applyReqHeaders(req, opts.headers)

var (
Expand Down

0 comments on commit da1f991

Please sign in to comment.