this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update atclient refs

+5 -5
+5 -5
atproto/auth/oauth/session.go
··· 13 13 "sync" 14 14 "time" 15 15 16 + "github.com/bluesky-social/indigo/atproto/atclient" 16 17 "github.com/bluesky-social/indigo/atproto/atcrypto" 17 - "github.com/bluesky-social/indigo/atproto/client" 18 18 "github.com/bluesky-social/indigo/atproto/syntax" 19 19 20 20 "github.com/golang-jwt/jwt/v5" ··· 64 64 // TODO: also persist access token creation time / expiration time? In context that token might not be an easily parsed JWT 65 65 } 66 66 67 - // Implementation of [client.AuthMethod] for an OAuth session. Handles DPoP request token signing and nonce rotation, and token refresh requests. Optionally uses a callback to persist updated session data. 67 + // Implementation of [atclient.AuthMethod] for an OAuth session. Handles DPoP request token signing and nonce rotation, and token refresh requests. Optionally uses a callback to persist updated session data. 68 68 // 69 69 // A single ClientSession instance can be called concurrently: updates to session data (the 'Data' field) are protected with a RW mutex lock. Note that concurrent calls to distinct ClientSession instances for the same session could result in clobbered session data. 70 70 type ClientSession struct { ··· 397 397 return nil, fmt.Errorf("OAuth client ran out of request retries") 398 398 } 399 399 400 - // Creates a new [client.APIClient] which wraps this session for auth. 401 - func (sess *ClientSession) APIClient() *client.APIClient { 402 - c := client.APIClient{ 400 + // Creates a new [atclient.APIClient] which wraps this session for auth. 401 + func (sess *ClientSession) APIClient() *atclient.APIClient { 402 + c := atclient.APIClient{ 403 403 Client: sess.Client, 404 404 Host: sess.Data.HostURL, 405 405 Auth: sess,