MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / isIterableAuthResponse

Function isIterableAuthResponse

src/core/classes/Iterable.ts:33–45  ·  view source on GitHub ↗
(
  response: IterableAuthResponse | string | undefined | null
)

Source from the content-addressed store, hash-verified

31 * Checks if the response is an IterableAuthResponse
32 */
33const 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/**

Callers 1

setupEventHandlersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…