()
| 17 | } |
| 18 | |
| 19 | async function readState() { |
| 20 | return Storage.read<ExternalAuthImportState>(STATE_KEY).catch((err) => { |
| 21 | if (err instanceof Storage.NotFoundError) return undefined |
| 22 | throw err |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | export async function maybeImportExternalAuth() { |
| 27 | if (!process.stdin.isTTY || !process.stdout.isTTY) return |
no test coverage detected