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

Function NewKimiAuth

internal/auth/kimi/kimi.go:52–57  ·  view source on GitHub ↗

NewKimiAuth creates a new KimiAuth service instance.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

50
51// NewKimiAuth creates a new KimiAuth service instance.
52func NewKimiAuth(cfg *config.Config) *KimiAuth {
53 return &KimiAuth{
54 deviceClient: NewDeviceFlowClient(cfg),
55 cfg: cfg,
56 }
57}
58
59// StartDeviceFlow initiates the device flow authentication.
60func (k *KimiAuth) StartDeviceFlow(ctx context.Context) (*DeviceCodeResponse, error) {

Callers 2

RequestKimiTokenMethod · 0.92
LoginMethod · 0.92

Calls 1

NewDeviceFlowClientFunction · 0.85

Tested by

no test coverage detected