(creds: CredentialFile)
| 13 | } |
| 14 | |
| 15 | export async function saveCredentials(creds: CredentialFile): Promise<void> { |
| 16 | const existing = readConfigFile() as Record<string, unknown>; |
| 17 | existing.oauth = creds; |
| 18 | await writeConfigFile(existing); |
| 19 | } |
| 20 | |
| 21 | export async function clearCredentials(): Promise<void> { |
| 22 | const existing = readConfigFile() as Record<string, unknown>; |
no test coverage detected