(options: {
readonly key: string;
readonly oauthHost?: string | undefined;
readonly storage?: 'file' | 'keyring' | undefined;
})
| 268 | } |
| 269 | |
| 270 | function managedOAuthRef(options: { |
| 271 | readonly key: string; |
| 272 | readonly oauthHost?: string | undefined; |
| 273 | readonly storage?: 'file' | 'keyring' | undefined; |
| 274 | }): ManagedKimiOAuthRef { |
| 275 | const oauthHost = persistedOAuthHost(options); |
| 276 | return { |
| 277 | storage: options.storage ?? 'file', |
| 278 | key: options.key, |
| 279 | oauthHost, |
| 280 | }; |
| 281 | } |
| 282 | |
| 283 | function configuredOAuthRef( |
| 284 | oauthRef: ManagedKimiOAuthRefInput | undefined, |
no test coverage detected