MCPcopy Create free account
hub / github.com/coze-dev/coze-go / WithAuthHttpClient

Function WithAuthHttpClient

auth.go:228–232  ·  view source on GitHub ↗
(client HTTPClient)

Source from the content-addressed store, hash-verified

226}
227
228func WithAuthHttpClient(client HTTPClient) OAuthClientOption {
229 return func(opt *oauthOption) {
230 opt.httpClient = client
231 }
232}
233
234// newOAuthClient creates a new OAuth core
235func newOAuthClient(clientID, clientSecret string, opts ...OAuthClientOption) (*OAuthClient, error) {

Callers 6

TestJWTAuthFunction · 0.85
TestPKCEOAuthClientFunction · 0.85
TestDeviceOAuthClientFunction · 0.85
TestJWTOAuthClientFunction · 0.85
TestWebOAuthClientFunction · 0.85
TestOAuthErrorFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestJWTAuthFunction · 0.68
TestPKCEOAuthClientFunction · 0.68
TestDeviceOAuthClientFunction · 0.68
TestJWTOAuthClientFunction · 0.68
TestWebOAuthClientFunction · 0.68
TestOAuthErrorFunction · 0.68