(message: string | undefined)
| 115 | : detail; |
| 116 | |
| 117 | const isAuthMessage = (message: string | undefined): boolean => |
| 118 | message !== undefined && |
| 119 | /authoriz|authenticat|forbidden|permission|credential|api.?key|access denied|access token|invalid token|token expired|logged in|sign in/i.test( |
| 120 | message, |
| 121 | ); |
| 122 | |
| 123 | /** Upstream error text can echo the request back (URLs with query params, |
| 124 | * auth headers), so scrub every credential value out of anything that leaves |
no outgoing calls
no test coverage detected