()
| 393 | } |
| 394 | |
| 395 | export async function clearCachedCredentialFile() { |
| 396 | try { |
| 397 | await fs.rm(getCachedCredentialPath(), { force: true }); |
| 398 | // Clear the Google Account ID cache when credentials are cleared |
| 399 | await clearCachedGoogleAccount(); |
| 400 | } catch (_) { |
| 401 | /* empty */ |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | async function fetchAndCacheUserInfo(client: OAuth2Client): Promise<void> { |
| 406 | try { |
no test coverage detected