@iterable/react-native-sdk - v2.1.0-beta.1
    Preparing search index...

    Enumeration IterableAuthFailureReason

    The reason for the failure of an authentication attempt.

    This is generally related to JWT token validation.

    FIXME: Android returns the string (EG: 'AUTH_TOKEN_EXPIRATION_INVALID'), but iOS returns the enum value (EG: 0). These should be standardized so that they both return the same type on either platform.

    Index

    Enumeration Members

    AUTH_TOKEN_EXPIRATION_INVALID: 0

    An auth token's expiration must be less than one year from its issued-at time.

    AUTH_TOKEN_EXPIRED: 1

    The token has expired.

    AUTH_TOKEN_FORMAT_INVALID: 2

    Token has an invalid format (failed a regular expression check).

    AUTH_TOKEN_GENERATION_ERROR: 3

    onAuthTokenRequested threw an exception.

    AUTH_TOKEN_GENERIC_ERROR: 4

    Any other error not captured by another constant.

    AUTH_TOKEN_INVALIDATED: 5

    Iterable has invalidated this token and it cannot be used.

    AUTH_TOKEN_MISSING: 6

    The request to Iterable's API did not include a JWT authorization header.

    AUTH_TOKEN_NULL: 7

    onAuthTokenRequested returned a null JWT token.

    AUTH_TOKEN_PAYLOAD_INVALID: 8

    Iterable could not decode the token's payload (iat, exp, email, or userId).

    AUTH_TOKEN_SIGNATURE_INVALID: 9

    Iterable could not validate the token's authenticity.

    AUTH_TOKEN_USER_KEY_INVALID: 10

    The token doesn't include an email or a userId. Or, one of these values is included, but it references a user that isn't in the Iterable project.