NewKimiAuth creates a new KimiAuth service instance.
(cfg *config.Config)
| 50 | |
| 51 | // NewKimiAuth creates a new KimiAuth service instance. |
| 52 | func 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. |
| 60 | func (k *KimiAuth) StartDeviceFlow(ctx context.Context) (*DeviceCodeResponse, error) { |
no test coverage detected