(providerName?: string | undefined)
| 155 | } |
| 156 | |
| 157 | async logout(providerName?: string | undefined): Promise<KimiAuthLogoutResult> { |
| 158 | const result = await this.toolkit.logout( |
| 159 | providerName, |
| 160 | this.resolveRuntimeManagedAuth(providerName).oauthRef, |
| 161 | ); |
| 162 | const updated = readConfigFile(this.options.configPath); |
| 163 | this.options.onConfigUpdated?.(updated); |
| 164 | return { |
| 165 | providerName: result.providerName, |
| 166 | ok: result.ok, |
| 167 | }; |
| 168 | } |
| 169 | |
| 170 | async getManagedUsage(providerName?: string | undefined): Promise<AuthManagedUsageResult> { |
| 171 | const auth = this.resolveRuntimeManagedAuth(providerName); |
nothing calls this directly
no test coverage detected