[SDK-151] cannot-read-property-authtoken-of-undefined#779
Conversation
…e result handling
3 new issues
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
example/android/app/src/main/java/iterable/reactnativesdk/example/IterableJwtGenerator.java
Show resolved
Hide resolved
example/android/app/src/main/java/iterable/reactnativesdk/example/JwtTokenModule.kt
Show resolved
Hide resolved
…oken-of-undefined
|
Diff Coverage: The code coverage on the diff in this pull request is 100.0%. Total Coverage: This PR will increase coverage by 0.58%. File Coverage Changes
🛟 Help
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
example/android/app/src/main/java/iterable/reactnativesdk/example/IterableJwtGenerator.java
Show resolved
Hide resolved
example/android/app/src/main/java/iterable/reactnativesdk/example/JwtTokenModule.kt
Show resolved
Hide resolved
…uthtoken-of-undefined
| ) { | ||
| return true; | ||
| } | ||
| return false; |
| if ((promiseResult as IterableAuthResponse).successCallback) { | ||
| (promiseResult as IterableAuthResponse).successCallback?.(); | ||
| if (promiseResult.successCallback) { | ||
| promiseResult.successCallback?.(); |
| if ((promiseResult as IterableAuthResponse).failureCallback) { | ||
| (promiseResult as IterableAuthResponse).failureCallback?.(); | ||
| if (promiseResult.failureCallback) { | ||
| promiseResult.failureCallback?.(); |
| Iterable.authManager.passAlongAuthToken(promiseResult as string); | ||
| Iterable.authManager.passAlongAuthToken(promiseResult); | ||
| } else { | ||
| IterableLogger?.log( |
There was a problem hiding this comment.
Can also consider calling failure callback here with appropriate message.
There was a problem hiding this comment.
Yeahhh I agree.. just don't want to mix concerns in the PR
Ayyanchira
left a comment
There was a problem hiding this comment.
LGTM. Made a nit pick comment which could be outside scope of this bug fix
🔹 JIRA Ticket(s) if any
✏️ Description