MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / RefreshAuth

Method RefreshAuth

internal/pluginhost/rpc_client.go:413–420  ·  view source on GitHub ↗
(ctx context.Context, req pluginapi.AuthRefreshRequest)

Source from the content-addressed store, hash-verified

411}
412
413func (a *rpcPluginAdapter) RefreshAuth(ctx context.Context, req pluginapi.AuthRefreshRequest) (pluginapi.AuthRefreshResponse, error) {
414 callbackID, closeCallback := a.openHostCallbackContext(ctx)
415 defer closeCallback()
416 return callPlugin[pluginapi.AuthRefreshResponse](ctx, a.client, pluginabi.MethodAuthRefresh, rpcAuthRefreshRequest{
417 AuthRefreshRequest: req,
418 HostCallbackID: callbackID,
419 })
420}
421
422func (a *rpcPluginAdapter) Authenticate(ctx context.Context, req pluginapi.FrontendAuthRequest) (pluginapi.FrontendAuthResponse, error) {
423 return callPlugin[pluginapi.FrontendAuthResponse](ctx, a.client, pluginabi.MethodFrontendAuthAuthenticate, req)

Callers

nothing calls this directly

Calls 2

callPluginFunction · 0.85

Tested by

no test coverage detected