( response: IterableAuthResponse | string | undefined | null )
| 31 | * Checks if the response is an IterableAuthResponse |
| 32 | */ |
| 33 | const isIterableAuthResponse = ( |
| 34 | response: IterableAuthResponse | string | undefined | null |
| 35 | ): response is IterableAuthResponse => { |
| 36 | if (typeof response === 'string') return false; |
| 37 | if ( |
| 38 | response?.authToken || |
| 39 | response?.successCallback || |
| 40 | response?.failureCallback |
| 41 | ) { |
| 42 | return true; |
| 43 | } |
| 44 | return false; |
| 45 | }; |
| 46 | |
| 47 | /* eslint-disable tsdoc/syntax */ |
| 48 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…