···11package client
2233import (
44- "context"
54 "net/http"
6576 "github.com/bluesky-social/indigo/atproto/syntax"
···1817// TODO:
1918//func NewRefreshAuth(pdsHost, accountIdentifier, password string) (*RefreshAuth, error) {
20192121-func (a *RefreshAuth) DoWithAuth(ctx context.Context, httpReq *http.Request, httpClient *http.Client) (*http.Response, error) {
2020+func (a *RefreshAuth) DoWithAuth(httpReq *http.Request, httpClient *http.Client) (*http.Response, error) {
2221 httpReq.Header.Set("Authorization", "Bearer "+a.AccessToken)
2322 // XXX: check response. if it is 403, because access token is expired, then take a lock and do a refresh
2423 // TODO: when doing a refresh request, copy at least the User-Agent header from httpReq, and re-use httpClient