(path: string)
| 631 | type AuthFile = Record<string, string | Record<string, string>>; |
| 632 | |
| 633 | const readAuthFile = (path: string): AuthFile => { |
| 634 | if (!fs.existsSync(path)) return {}; |
| 635 | return JSON.parse(fs.readFileSync(path, "utf-8")) as AuthFile; |
| 636 | }; |
| 637 | |
| 638 | const readScopedFileSecret = (auth: AuthFile, scopeId: string, secretId: string): string | null => { |
| 639 | const scoped = auth[scopeId]; |
no outgoing calls
no test coverage detected