()
| 22 | * ships the fallback only. |
| 23 | */ |
| 24 | export function credentialsPath(): string { |
| 25 | const base = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config'); |
| 26 | return path.join(base, 'decap', 'credentials.json'); |
| 27 | } |
| 28 | |
| 29 | export function readCredentials(): Credentials | null { |
| 30 | try { |
no outgoing calls
no test coverage detected