(error: unknown)
| 114 | } |
| 115 | |
| 116 | function isStaleConnectionError(error: unknown): boolean { |
| 117 | if (!(error instanceof APIConnectionError)) { |
| 118 | return false |
| 119 | } |
| 120 | const details = extractConnectionErrorDetails(error) |
| 121 | return details?.code === 'ECONNRESET' || details?.code === 'EPIPE' |
| 122 | } |
| 123 | |
| 124 | function isOauthBackedFirstPartySession(session: ResolvedAuthSession): boolean { |
| 125 | return ( |
no test coverage detected