(error: unknown)
| 30 | export const defaultAuthConfig: AuthConfig = getDefaultAuthConfig(); |
| 31 | |
| 32 | function normalizeConfigError(error: unknown): never { |
| 33 | if (error instanceof z.ZodError) { |
| 34 | const credStorageIssue = error.issues.find( |
| 35 | issue => issue.path[0] === 'credStorage' |
| 36 | ); |
| 37 | |
| 38 | if (credStorageIssue) { |
| 39 | throw new Error(credStorageIssue.message); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | throw error; |
| 44 | } |
| 45 | |
| 46 | export function parseGlobalConfig(value: unknown): GlobalConfig { |
| 47 | try { |
no test coverage detected