[NO QA] Address comments on QBO Authentication implementation#40381
[NO QA] Address comments on QBO Authentication implementation#40381aldo-expensify wants to merge 3 commits into
Conversation
|
@srikarparsi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Sorry @s77rt , added you by mistake |
| const shouldUseSecure = request?.shouldUseSecure ?? false; | ||
|
|
||
| if (shouldUseStagingServer) { | ||
| if (CONFIG.IS_USING_WEB_PROXY && !request?.shouldSkipWebProxy) { |
There was a problem hiding this comment.
Not to go back and forth but requiresShortLivedAuthToken is unknown to the api library i.e. if we set that flag to true the request won't have the auth token added.
There was a problem hiding this comment.
That is true, are you saying that it may cause confusion making developers thing that a short lived auth token will be added when we pass requiresShortLivedAuthToken: true?
There was a problem hiding this comment.
Yes exactly. On the other hand if we use shouldSkipWebProxy and set that flag to true the request will actually skip the proxy
There was a problem hiding this comment.
What about isForWebViewOrNewTab? the main purpose of changing the name was to:
That way we are not exposing the underlying "proxy" or "no proxy" to other areas of the code that don't really need to know about it.
isForWebViewOrNewTab doesn't cause confusion about the short lived auth token
For context, this change came from this conversation: #39219 (comment)
|
Where we at with this one? |
Lol, sorry, I completely missed this comment. I guess we can close unless you think it is still worth it to get these changes done |
Details
Follow up to the comments left here:
#39219 (comment)
#39219 (comment)
Just renaming property and removing comment
Fixed Issues
$
PROPOSAL: Just renaming property and removing comment
Tests
N/A: No behaviour changed
Offline tests
QA Steps
N/A: No behaviour changed
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop