(data: Record<string, unknown>)
| 29 | } |
| 30 | |
| 31 | async function writeCredentials(data: Record<string, unknown>): Promise<void> { |
| 32 | await writeFile(credentialsPath(), JSON.stringify(data), 'utf8') |
| 33 | clearOAuthTokenCache() |
| 34 | clearTrustedDeviceTokenCache() |
| 35 | } |
| 36 | |
| 37 | async function readCredentials(): Promise<Record<string, unknown>> { |
| 38 | return JSON.parse(await readFile(credentialsPath(), 'utf8')) as Record< |
no test coverage detected