-
Notifications
You must be signed in to change notification settings - Fork 41
[SDK-151] cannot-read-property-authtoken-of-undefined #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
| static log(message?: unknown, ...optionalParams: unknown[]) { | ||
| if (!IterableLogger.loggingEnabled) return; | ||
|
|
||
| console.log(message, ...optionalParams); |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
an access to apiKey
This logs sensitive data returned by
an access to apiKey
|
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if ((promiseResult as IterableAuthResponse).successCallback) { | ||
| (promiseResult as IterableAuthResponse).successCallback?.(); | ||
| if (promiseResult.successCallback) { | ||
| promiseResult.successCallback?.(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if ((promiseResult as IterableAuthResponse).failureCallback) { | ||
| (promiseResult as IterableAuthResponse).failureCallback?.(); | ||
| if (promiseResult.failureCallback) { | ||
| promiseResult.failureCallback?.(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Iterable.authManager.passAlongAuthToken(promiseResult as string); | ||
| Iterable.authManager.passAlongAuthToken(promiseResult); | ||
| } else { | ||
| IterableLogger?.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also consider calling failure callback here with appropriate message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeahhh I agree.. just don't want to mix concerns in the PR
Ayyanchira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Made a nit pick comment which could be outside scope of this bug fix
🔹 JIRA Ticket(s) if any
✏️ Description