@@ -8,32 +8,32 @@ export enum IterableAuthFailureReason {
88 * An auth token's expiration must be less than one year from its issued-at
99 * time.
1010 */
11- AUTH_TOKEN_EXPIRATION_INVALID ,
11+ AUTH_TOKEN_EXPIRATION_INVALID = 'AUTH_TOKEN_EXPIRATION_INVALID' ,
1212 /** The token has expired. */
13- AUTH_TOKEN_EXPIRED ,
13+ AUTH_TOKEN_EXPIRED = 'AUTH_TOKEN_EXPIRED' ,
1414 /** Token has an invalid format (failed a regular expression check). */
15- AUTH_TOKEN_FORMAT_INVALID ,
15+ AUTH_TOKEN_FORMAT_INVALID = 'AUTH_TOKEN_FORMAT_INVALID' ,
1616 /** `onAuthTokenRequested` threw an exception. */
17- AUTH_TOKEN_GENERATION_ERROR ,
17+ AUTH_TOKEN_GENERATION_ERROR = 'AUTH_TOKEN_GENERATION_ERROR' ,
1818 /** Any other error not captured by another constant. */
19- AUTH_TOKEN_GENERIC_ERROR ,
19+ AUTH_TOKEN_GENERIC_ERROR = 'AUTH_TOKEN_GENERIC_ERROR' ,
2020 /** Iterable has invalidated this token and it cannot be used. */
21- AUTH_TOKEN_INVALIDATED ,
21+ AUTH_TOKEN_INVALIDATED = 'AUTH_TOKEN_INVALIDATED' ,
2222 /** The request to Iterable's API did not include a JWT authorization header. */
23- AUTH_TOKEN_MISSING ,
23+ AUTH_TOKEN_MISSING = 'AUTH_TOKEN_MISSING' ,
2424 /** `onAuthTokenRequested` returned a null JWT token. */
25- AUTH_TOKEN_NULL ,
25+ AUTH_TOKEN_NULL = 'AUTH_TOKEN_NULL' ,
2626 /**
2727 * Iterable could not decode the token's payload (`iat`, `exp`, `email`,
2828 * or `userId`).
2929 */
30- AUTH_TOKEN_PAYLOAD_INVALID ,
30+ AUTH_TOKEN_PAYLOAD_INVALID = 'AUTH_TOKEN_PAYLOAD_INVALID' ,
3131 /** Iterable could not validate the token's authenticity. */
32- AUTH_TOKEN_SIGNATURE_INVALID ,
32+ AUTH_TOKEN_SIGNATURE_INVALID = 'AUTH_TOKEN_SIGNATURE_INVALID' ,
3333 /**
3434 * The token doesn't include an `email` or a `userId`. Or, one of these
3535 * values is included, but it references a user that isn't in the Iterable
3636 * project.
3737 */
38- AUTH_TOKEN_USER_KEY_INVALID ,
38+ AUTH_TOKEN_USER_KEY_INVALID = 'AUTH_TOKEN_USER_KEY_INVALID' ,
3939}
0 commit comments